avoid panic when OIDC config is not provided

pull/1671/head
Stefan Berthold 1 year ago committed by Herman Slatman
parent 1fe61bee7b
commit 2208b03744
No known key found for this signature in database
GPG Key ID: F4D8A44EA0A75A4F

@ -40,7 +40,7 @@ func (o *OIDCOptions) GetProvider(ctx context.Context) *oidc.Provider {
func (o *OIDCOptions) GetConfig() *oidc.Config {
if o == nil {
return nil
return &oidc.Config{}
}
config := oidc.Config(o.Config)
return &config

Loading…
Cancel
Save