Skip to content

Commit

Permalink
oauth2: Add scope to introspection test suite
Browse files Browse the repository at this point in the history
Signed-off-by: arekkas <aeneas@ory.am>
  • Loading branch information
arekkas committed Jul 21, 2018
1 parent 90abb14 commit 5242ac5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oauth2/introspector_test.go
Expand Up @@ -150,6 +150,7 @@ func TestIntrospectorSDK(t *testing.T) {
expectInactive: false,
scopes: []string{"foo.bar"},
assert: func(t *testing.T, c *hydra.OAuth2TokenIntrospection) {
assert.Equal(t, "core foo.*", c.Scope)
assert.Equal(t, "alice", c.Sub)
assert.Equal(t, now.Add(time.Hour).Unix(), c.Exp, "expires at")
assert.Equal(t, now.Unix(), c.Iat, "issued at")
Expand Down

0 comments on commit 5242ac5

Please sign in to comment.