1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-07-13 01:40:48 +02:00

set providerDefaults for oidc consistently (#1828)

* set providerDefaults for oidc consistently

* docs: document #1828 in CHANGELOG
This commit is contained in:
Centzilius
2022-10-23 11:48:20 +02:00
committed by GitHub
parent cfcba1a7fc
commit ece3d62d64
2 changed files with 10 additions and 2 deletions

View File

@ -22,7 +22,14 @@ type OIDCProvider struct {
// NewOIDCProvider initiates a new OIDCProvider
func NewOIDCProvider(p *ProviderData, opts options.OIDCOptions) *OIDCProvider {
p.ProviderName = "OpenID Connect"
p.setProviderDefaults(providerDefaults{
name: "OpenID Connect",
loginURL: nil,
redeemURL: nil,
profileURL: nil,
validateURL: nil,
scope: "",
})
p.getAuthorizationHeaderFunc = makeOIDCHeader
return &OIDCProvider{