mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-23 03:29:51 +02:00
Allow clearing default Azure and Google auth code options (#4315)
Allow users to clear the default IdP auth code options, by explicitly setting an empty idp_request_params map. To do this in a YAML config file, set: idp_request_params: {}
This commit is contained in:
parent
1f839554c9
commit
2bf83e20d8
5 changed files with 70 additions and 2 deletions
|
@ -61,7 +61,7 @@ func New(ctx context.Context, o *oauth.Options) (*Provider, error) {
|
|||
p.Provider = genericOidc
|
||||
|
||||
p.AuthCodeOptions = defaultAuthCodeOptions
|
||||
if len(o.AuthCodeOptions) != 0 {
|
||||
if o.AuthCodeOptions != nil {
|
||||
p.AuthCodeOptions = o.AuthCodeOptions
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue