CAS integration with multiple OpenID Providers

108 views
Skip to first unread message

P Shreyas Holla

unread,
Jan 22, 2019, 3:50:25 AM1/22/19
to CAS Community
We need to integrate CAS with multiple OpenID Providers like with Google and Azure. How can we achieve it?

P Shreyas Holla

unread,
Jan 22, 2019, 3:58:39 AM1/22/19
to CAS Community

Suppose we have User1 and User2.

1)Whenever user1 acesses the application URL, he has to be redirected to google login page,

2) Whenever user2 acesses the application URL, he has to be redirected to microsoft Azure login page.

leleuj

unread,
Jan 22, 2019, 9:30:29 AM1/22/19
to CAS Community
Hi,

You can log in at Azure or Google via the authentication delegation feature: https://apereo.github.io/cas/6.0.x/configuration/Configuration-Properties.html#openid-connect-1

Choosing the OpenID Connect provider per service is a customization.

Thanks.
Best regards,
Jéôme

P Shreyas Holla

unread,
Jan 22, 2019, 11:54:50 PM1/22/19
to CAS Community

leleuj , we want to achieve something like http://localhost:8080/cas?client_name=AzureAdClient for Azure and http://localhost:8080/cas?client_name=GoogleClient for google provider. Would this be possible?

Thanks
Shreyas

Jérôme LELEU

unread,
Jan 23, 2019, 2:59:10 AM1/23/19
to cas-...@apereo.org
Hi,

Starting with the version 5.3, you have the /clientredirect URL with the service and client_name parameters. You may use that.
Thanks.
Best regards,
Jérôme


--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/9f16a773-03fc-433b-884f-e206e3979469%40apereo.org.

P Shreyas Holla

unread,
Jan 23, 2019, 10:48:40 AM1/23/19
to CAS Community
Thanks Jerome, will test the same and will update.

P Shreyas Holla

unread,
Feb 12, 2019, 4:17:42 AM2/12/19
to CAS Community

Thanks Jerome, it worked with 5.3.7.

P Shreyas Holla

unread,
Feb 13, 2019, 5:13:25 AM2/13/19
to CAS Community
Jérôme, is it possible to mention the application url as part of /clientredirect like "http://localhost:8080/cas/clientredirect?client_name=Google2Client&redirect_uri=http://test.com", after successful authentication from openid, i want to redirect to applications from which request was received.


Thanks
Shreyas

P Shreyas Holla

unread,
Feb 14, 2019, 2:33:10 AM2/14/19
to CAS Community
Jérôme, I tried the url "http://localhost8080/cas/clientredirect?client_name=AzureAdClient&targetService=http://localhost:8080/app" which returns to application url but with serviceticket, is it possible to get the OAuthCode/accesstoken or using serviceticket can i get the accessToken.

Thanks
Shreyas
Reply all
Reply to author
Forward
0 new messages