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

Azure AD responses 401 when accquiring access token using the client_secret_jwt client authentication method #93819

Closed
moarychan opened this issue Jun 2, 2022 · 5 comments

Comments

@moarychan
Copy link
Contributor

I have passed the case Access token request with a certificate using private_key_jwt client authentication method, but I can not find any document about client authentication using client_secert_jwt, it should be mimic with private_key_jwt client authentication method. I follow the doc OAuth2 Client Authentication with Azure AD, but I got the 401 response.

I propose there's section Fifth case: Access token request with a secret key in https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow, it will use the client_secert_jwt client authentication method to authenticate the client.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@JamesTran-MSFT
Copy link
Contributor

@moarychan
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

@nickludwig
Copy link
Contributor

Hey @moarychan - taking a look at this. Will circle back when I have an answer for you.

@nickludwig
Copy link
Contributor

Hey @moarychan - client_secret_jwt isn't supported as part of our implementation of the client credentials flow. This is intentional and is why you're experiencing an error. Hope this helps!

I will leave this issue open for a few more days in case you have any follow up you'd like to add.

@nickludwig
Copy link
Contributor

Closing as per above message

@nickludwig
Copy link
Contributor

#please-close

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

No branches or pull requests

5 participants