fix(op): add scope to access token scope
This commit is contained in:
parent
8afb8b8d5f
commit
ee6e4acb2a
7 changed files with 14 additions and 9 deletions
|
@ -145,7 +145,7 @@ func TestServerRoutes(t *testing.T) {
|
|||
"assertion": jwtProfileToken,
|
||||
},
|
||||
wantCode: http.StatusOK,
|
||||
contains: []string{`{"access_token":`, `"token_type":"Bearer","expires_in":299}`},
|
||||
contains: []string{`{"access_token":`, `"token_type":"Bearer","expires_in":299,"scope":"openid"}`},
|
||||
},
|
||||
{
|
||||
name: "Token exchange",
|
||||
|
@ -174,7 +174,7 @@ func TestServerRoutes(t *testing.T) {
|
|||
"scope": oidc.SpaceDelimitedArray{oidc.ScopeOpenID, oidc.ScopeOfflineAccess}.String(),
|
||||
},
|
||||
wantCode: http.StatusOK,
|
||||
contains: []string{`{"access_token":"`, `","token_type":"Bearer","expires_in":299}`},
|
||||
contains: []string{`{"access_token":"`, `","token_type":"Bearer","expires_in":299,"scope":"openid offline_access"}`},
|
||||
},
|
||||
{
|
||||
// This call will fail. A successful test is already
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue