Skip to content

Commit 884e78e

Browse files
committed
Grannts, scopes and redirectURI: authz and oauth unit tests fixups
1 parent e9f3e5f commit 884e78e

3 files changed

Lines changed: 220 additions & 102 deletions

File tree

pkg/authorization/authorizer/scope/validate_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ func TestValidateScopeRestrictions(t *testing.T) {
2626
client: &oauthapi.OAuthClient{},
2727
},
2828
{
29-
name: "unrestricted allows none",
30-
scopes: []string{},
31-
client: &oauthapi.OAuthClient{},
29+
name: "missing scopes check precedes unrestricted",
30+
scopes: []string{},
31+
client: &oauthapi.OAuthClient{},
32+
expectedErrors: []string{"may not request unscoped tokens"},
3233
},
3334
{
3435
name: "simple literal",

0 commit comments

Comments
 (0)