Repository navigation
Microsoft socail login issue. #36184
Unanswered
venu-vassar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am trying to implement microsoft social login in my angular application which uses keycloak for authentication. I am using custom login page rather than keycloak provided login page. Here I enabled social login.
I added identity provider configuration in keycloak as below
and I also created policy and enabled token exchange permissions.
In my angular project I am accessing microsoft identity provider as below
I am using @abacritt/angularx-social-login library
After getting access token and userinfo from microsoft Identity provider I am calling an api to my backend developed in java sprng boot where I am calling keyclaok for token exchange.
Here I am getting issue while calling token exchange api to keclaok new random use is getting created in keyclaok and getting access and refresh token for that user.
while debugging I found the issue present access token decoded info there I am not getting correct information like sub claim.
How can I fix this issue?
All reactions