You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
Thanks for the library. It's straightforward 👍
I need an advise to how to check if a user is already logged in another domain of the same identity provider. I know there is
"loadDiscoveryDocumentAndTryLogin", but that's not what I need, because I don't want to redirect the user to the login form if he is not authenticated.
Example 1:
I login in app1.example.
I access to app2.example. I want to show in the top left of the page "Hi, "
Example 2:
I do not login in any site.
I access to app2.example. I want to show in the top left of the page "Hi, guest! Login to get the full experience"
I read this issue: #1030
but the refresh token is not set.
Tell me if I don't make myself clear :-)
Regards,
EDIT:
I also try to invoke
oauthService.loadDiscoveryDocument()
And then manually call tryLogin with two callback (loginerror, tokenreceived), but they are not triggered. TryLogin return always true, regardless the user is logged on the identity provider or not.
The text was updated successfully, but these errors were encountered:
Hi all,
Thanks for the library. It's straightforward 👍
I need an advise to how to check if a user is already logged in another domain of the same identity provider. I know there is
"loadDiscoveryDocumentAndTryLogin", but that's not what I need, because I don't want to redirect the user to the login form if he is not authenticated.
Example 1:
I login in app1.example.
I access to app2.example. I want to show in the top left of the page "Hi, "
Example 2:
I do not login in any site.
I access to app2.example. I want to show in the top left of the page "Hi, guest! Login to get the full experience"
I read this issue:
#1030
but the refresh token is not set.
Tell me if I don't make myself clear :-)
Regards,
EDIT:
I also try to invoke
oauthService.loadDiscoveryDocument()
And then manually call tryLogin with two callback (loginerror, tokenreceived), but they are not triggered. TryLogin return always true, regardless the user is logged on the identity provider or not.
The text was updated successfully, but these errors were encountered: