Skip to content

oidc: add AuthorizationEndpoint config override - #3339

Draft
maxpetrusenkoagent wants to merge 1 commit into
juanfont:mainfrom
maxpetrusenkoagent:main
Draft

oidc: add AuthorizationEndpoint config override#3339
maxpetrusenkoagent wants to merge 1 commit into
juanfont:mainfrom
maxpetrusenkoagent:main

Conversation

@maxpetrusenkoagent

Copy link
Copy Markdown

Fixes #2168

…viders

Some OIDC providers (e.g. GitHub Actions at token.actions.githubusercontent.com)
do not include authorization_endpoint in their /.well-known/openid-configuration
discovery document. This causes oidcProvider.Endpoint().AuthURL to be empty,
which makes oauth2.Config.AuthCodeURL() produce an empty redirect URL.

Add an optional oidc.authorization_endpoint config field that lets users
explicitly specify the authorization endpoint URL when the discovery
document is missing it.

Fixes juanfont#2168.

Signed-off-by: maxpetrusenkoagent <max.petrusenko.agent@gmail.com>
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

Successfully merging this pull request may close these issues.

[Bug] authURL is empty when using GitHub as an OIDC server

1 participant