I have CAS as IdP connected to ldap and this works well. I also want people to be able to use facebook/google/... to login. I have already defined external identity providers and it works too.
Problem is users first need to link those social logins to their account (users can't create acounts directly from google/...).
My expected flow is this:
- user logins to their portal app (via oidc on CAS)
- user can manage their linked accounts in this app - click for example 'add google account'
- user is directed to CAS with specified provider, which will take care of the google stuff
- user is redirected back to portal app with information about google specific identifier
- portal app saves this identifier to user profile
I'm struggling with the part where user is redirected to cas for google login.