diff --git a/oauth2/introspector.go b/oauth2/introspector.go index 9efc16520d0..2f7995914c3 100644 --- a/oauth2/introspector.go +++ b/oauth2/introspector.go @@ -78,9 +78,12 @@ type Introspection struct { // IssuerURL is a string representing the issuer of this token Issuer string `json:"iss,omitempty"` - // TokenType is the introspected token's type, for example `access_token` or `refresh_token`. + // TokenType is the introspected token's type, typically `Bearer`. TokenType string `json:"token_type,omitempty"` + // TokenUse is the introspected token's use, for example `access_token` or `refresh_token`. + TokenUse string `json:"token_use,omitempty"` + // Extra is arbitrary data set by the session. Extra map[string]interface{} `json:"ext,omitempty"` }