-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
providers/oauth2: allow m2m for JWKS without alg in keys #12196
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -111,3 +111,22 @@ return True | |
| 9. Open **Flow settings** and choose _azure-ad-enrollment_ as enrollment flow. | ||
|
|
||
| Try to login with a **_new_** user. You should see no prompts and the user should have the correct information. | ||
|
|
||
| ### Machine-to-machine authentication <span class="badge badge--version">authentik 2024.12+</span> | ||
|
|
||
| When using [Machine-to-Machine](../../../../add-secure-apps/providers/oauth2/client_credentials.md#jwt-authentication) authentication, some specific steps need to be considered. | ||
|
|
||
| When getting the JWT token from Azure AD, the scope needs to be set to the Application ID URI, and _not_ the Graph URL, as otherwise the JWT will be in an invalid format. | ||
|
BeryJu marked this conversation as resolved.
Outdated
|
||
|
|
||
| ```http | ||
| POST /<azure-ad-tenant-id>/oauth2/v2.0/token/ HTTP/1.1 | ||
| Host: login.microsoftonline.com | ||
| Content-Type: application/x-www-form-urlencoded | ||
|
|
||
| grant_type=client_credentials& | ||
| client_id=<application_client_id>& | ||
| scope=api://<application_client_id>/.default& | ||
| client_secret=<application_client_secret> | ||
| ``` | ||
|
|
||
| The JWT returned from the request above can be used with authentik to exchange it for an authentik JWT. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure what this means... You can configure authentik to use the returned JWT (from the request) instead of the auto-generated authentik JWT?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And if we say "can be used" we need to explain how... does one configure it, is it automatic, etc?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Those steps are explained in |
||
Uh oh!
There was an error while loading. Please reload this page.