[keycloak-user] Help with SSO
Jorge M.
jm85martins at gmail.com
Fri May 5 13:02:20 EDT 2017
Hi,
I'm trying to implement a proof of concept that authenticates a user using
the API direct access grant with grant_type password (no social login on
this scenario), and after getting the tokens I use them to create a session
in the browser (using javascript adapter).
That is actually working fine... except the SSO! :(
I think that my problem with SSO is related with the checkLoginIframe. If
checkLoginIframe is enabled the login doesn't work. If I disable it, the
login works fine but no SSO. Am I doing something wrong? Can I get SSO with
this approach?
My JS adapter code that works fine for login:
keycloak.init({
checkLoginIframe : false,
token: "xxx",
refreshToken: "xxx",
idToken: "xxx"
}).success(function(authenticated){
if(!authenticated){
keycloak.login();
} else {
loadData();
}
}).error(function () {
});
Thank you,
JM
2017-05-04 13:34 GMT+01:00 Thomas Recloux <thomas at recloux.fr>:
>
>
> So, is it possible to do SSO among different realms? How can we do that?
> Is there any example?
>
>
> No, it's not possible
>
> When https://issues.jboss.org/browse/KEYCLOAK-2671 will be implemented,
> the login theme will be able generate different content for specific
> clients.
>
>
>
>
More information about the keycloak-user
mailing list