Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
TokenIntrospect(token string) (*Introspection, error)
}
Client is the interface for the token introspection client.
func NewDefaultClient ¶
NewDefaultClient returns a new default client.
type Introspection ¶
type Introspection struct {
Active bool `json:"active"`
Subject string `json:"sub"`
Extra IntrospectionExtra `json:"ext,omitempty"`
}
Introspection is the response from the token introspection endpoint.
type IntrospectionExtra ¶
type IntrospectionExtra struct {
Email string `json:"email,omitempty"`
EmailVerified *bool `json:"email_verified,omitempty"`
}
IntrospectionExtra is the extra fields that can be returned in the token introspection response.
Click to show internal directories.
Click to hide internal directories.