Skip to content

Conversation

@ykalidin
Copy link

Added the Keycloak example using the SSOAuthenticate function.

Copy link

@rameshpolishetti rameshpolishetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

if(output == null)
System.debugOut("Authentication Failed");
else
System.debugOut("Authentication succeeded");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a JWT token returned i suppose. But just logging it does not help showcase SSO.
In SSO typically we do auth via central auth server in this case keycloak, and the token is then passed along to another client which can authenticate via that token and does not need to redo the whole login process.

So in this example, i'd like to see 2 instances of the app, when the user hits app1 the first time, it needs to provide the login details and authenticate off keycloak and return a jwt token. Now if the 2nd app is hit, it can use the same token to authenticate and does not need to have to provide username/password.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants