Add default non-empty logout URL.

This commit is contained in:
2024-07-25 00:28:15 +01:00
parent d1fa76b6b5
commit c588d6cd4d
+6 -1
View File
@@ -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 {