diff --git a/settings.go b/settings.go index 8572450..9598bc9 100644 --- a/settings.go +++ b/settings.go @@ -23,10 +23,15 @@ type Config struct { } func CreateConfig() *Config { - return &Config{ + c := &Config{ Scopes: []string{"openid", "profile", "email"}, LogLevel: "info", } + + if c.LogoutURL == "" { + c.LogoutURL = c.CallbackURL + "/logout" + } + return c } func (c *Config) Validate() error {