mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-20 15:04:34 +00:00
supervisor-oidc: int test passes, but impl needs refactor
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
@@ -118,14 +118,16 @@ func TestSupervisorOIDCDiscovery(t *testing.T) {
|
||||
// Check that the response matches our expectations.
|
||||
expectedResultTemplate := here.Doc(`{
|
||||
"issuer": "%s",
|
||||
"authorization_endpoint": "%s/connect/authorize",
|
||||
"token_endpoint": "%s/connect/token",
|
||||
"authorization_endpoint": "%s/oauth2/v0/auth",
|
||||
"token_endpoint": "%s/oauth2/v0/token",
|
||||
"token_endpoint_auth_methods_supported": ["client_secret_basic"],
|
||||
"token_endpoint_auth_signing_alg_values_supported": ["RS256"],
|
||||
"jwks_uri": "%s/jwks.json",
|
||||
"scopes_supported": ["openid", "offline"],
|
||||
"response_types_supported": ["code"],
|
||||
"claims_supported": ["groups"],
|
||||
"subject_types_supported": ["public"],
|
||||
"id_token_signing_alg_values_supported": ["RS256"]
|
||||
}`)
|
||||
expectedJSON := fmt.Sprintf(expectedResultTemplate, issuer, issuer, issuer, issuer)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user