mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2024-12-20 12:51:17 +00:00
Fix: Only overwrite default if config is non-empty
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
6575bc553d
commit
2b15b34bb4
1 changed files with 5 additions and 1 deletions
|
@ -76,7 +76,11 @@ func (a *AuthGoogleOAuth) Configure(yamlSource []byte) (err error) {
|
|||
a.ClientSecret = envelope.Providers.GoogleOAuth.ClientSecret
|
||||
a.RedirectURL = envelope.Providers.GoogleOAuth.RedirectURL
|
||||
a.RequireDomain = envelope.Providers.GoogleOAuth.RequireDomain
|
||||
a.UserIDMethod = envelope.Providers.GoogleOAuth.UserIDMethod
|
||||
|
||||
if envelope.Providers.GoogleOAuth.UserIDMethod != "" {
|
||||
a.UserIDMethod = envelope.Providers.GoogleOAuth.UserIDMethod
|
||||
}
|
||||
|
||||
a.cookie = envelope.Cookie
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue