1
0

fix(openid): use the calculated redirect url when authenticating with openid providers

This commit is contained in:
kolaente
2024-01-28 12:41:35 +01:00
parent a20f6ac815
commit ce53663a88
5 changed files with 14 additions and 22 deletions

View File

@ -63,9 +63,8 @@ type localAuthInfo struct {
}
type openIDAuthInfo struct {
Enabled bool `json:"enabled"`
RedirectURL string `json:"redirect_url"`
Providers []*openid.Provider `json:"providers"`
Enabled bool `json:"enabled"`
Providers []*openid.Provider `json:"providers"`
}
type legalInfo struct {
@ -109,8 +108,7 @@ func Info(c echo.Context) error {
Enabled: config.AuthLocalEnabled.GetBool(),
},
OpenIDConnect: openIDAuthInfo{
Enabled: config.AuthOpenIDEnabled.GetBool(),
RedirectURL: config.AuthOpenIDRedirectURL.GetString(),
Enabled: config.AuthOpenIDEnabled.GetBool(),
},
},
}