auth: support for end_session_endpoint discovery, remove OIDC_LOGOUT_URL

This commit is contained in:
yusing
2025-03-28 07:21:20 +08:00
parent f72d9aee80
commit cba7338d8d
3 changed files with 63 additions and 28 deletions

View File

@@ -306,7 +306,7 @@ func TestInitOIDC(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
_, err := NewOIDCProvider(tt.issuerURL, tt.clientID, tt.clientSecret, tt.redirectURL, tt.logoutURL, tt.allowedUsers, tt.allowedGroups)
_, err := NewOIDCProvider(tt.issuerURL, tt.clientID, tt.clientSecret, tt.redirectURL, tt.allowedUsers, tt.allowedGroups)
if (err != nil) != tt.wantErr {
t.Errorf("InitOIDC() error = %v, wantErr %v", err, tt.wantErr)
}