Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to obtain JWT token for federated identity credentials #486

Open
su18915080 opened this issue May 31, 2024 · 0 comments
Open

How to obtain JWT token for federated identity credentials #486

su18915080 opened this issue May 31, 2024 · 0 comments

Comments

@su18915080
Copy link

su18915080 commented May 31, 2024

I am new to OIDC and MSAL and I am trying to implement Client Credential Flow with federated credential for Service-to-Service authentication in AKS. For my case the Identity Provider is the AKS.
I am wondering if there is example code or doc for this scenario.

I was able to get an access token from MS Identity Platform with client_id and client_secret pretty easily using the func confidential.NewCredFromSecret() and Client.AcquireTokenByCredential(). It is straight forward.
But I am having a trouble to get an assertion(JWT token), issued by IdP, to exchange with access token from MS Identity Platform.

Can anybody help? Can we use this MSAL lib to achieve it?

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

No branches or pull requests

1 participant