fix(oidc): add trailing slash to OIDCAuthBasePath to work with paths like /authorize

This commit is contained in:
yusing
2025-12-22 17:13:42 +08:00
parent dc39f0cb6e
commit 0b410311da

View File

@@ -68,9 +68,9 @@ func (auth *OIDCProvider) getAppScopedCookieName(baseName string) string {
const ( const (
OIDCAuthInitPath = "/" OIDCAuthInitPath = "/"
OIDCAuthBasePath = "/auth" OIDCAuthBasePath = "/auth/"
OIDCPostAuthPath = OIDCAuthBasePath + "/callback" OIDCPostAuthPath = OIDCAuthBasePath + "callback"
OIDCLogoutPath = OIDCAuthBasePath + "/logout" OIDCLogoutPath = OIDCAuthBasePath + "logout"
) )
var ( var (