Skip to content

OAuth/OIDC Source: Basic Auth Headers (potential fix) #9895

Closed
@Adrian-DKFZ

Description

@Adrian-DKFZ

Is your feature request related to a problem? Please describe.
After one of our external IdPs updated their software, they now require client id and secret to be sent as basic auth in order to retreive an access token. Authentik won't propperly request the token with a basic auth header and throws an error.
I described this issue previously in #9289 and @BeryJu provided a fix. Unfortunately, that didn't fix the issue.

Describe the solution you'd like
It would be great to provide a sort of switch in the OIDC source settings in order to determine, whether client id and secret should be sent as basic auth or not.

Describe alternatives you've considered
I made some changes to the oauth2.py to send the basic auth headers and it works with our IdP. With this way of doing it, authentik sends basic auth headers to all OIDC IdPs, so improvements would have to be made.
You can find the changes here: Adrian-DKFZ/authentik@main...Adrian-DKFZ-basic-auth-headers
An official fix/implementation would be preferred, as we wouldn't want to maintain our own seperate version of authentik.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions