jwt: correct the test expect

This commit is contained in:
Tim Möhlmann 2023-09-28 16:48:45 +03:00
parent 0200c2302f
commit a1a6c199f6

View file

@ -144,8 +144,8 @@ func TestServerRoutes(t *testing.T) {
"scope": oidc.SpaceDelimitedArray{oidc.ScopeOpenID, oidc.ScopeOfflineAccess}.String(), "scope": oidc.SpaceDelimitedArray{oidc.ScopeOpenID, oidc.ScopeOfflineAccess}.String(),
"assertion": jwtProfileToken, "assertion": jwtProfileToken,
}, },
wantCode: http.StatusBadRequest, wantCode: http.StatusOK,
json: "{\"error\":\"server_error\",\"error_description\":\"audience is not valid: Audience must contain client_id \\\"https://localhost:9998/\\\"\"}", contains: []string{`{"access_token":`, `"token_type":"Bearer","expires_in":299}`},
}, },
{ {
name: "Token exchange", name: "Token exchange",