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.
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.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator is the default Okta client.
func NewValidator ¶
NewValidator returns a new default client.
func (*Validator) TokenIntrospect ¶
func (v *Validator) TokenIntrospect(tokenStr string) (*Introspection, error)
TokenIntrospect introspects the given token.
type ValidatorOpts ¶
ValidatorOpts are options for NewDefautlValidator
Click to show internal directories.
Click to hide internal directories.