Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Introspect ¶
type Introspect struct {
// contains filtered or unexported fields
}
func NewIntrospectClient ¶
func NewIntrospectClient(endpointURL string) *Introspect
func (*Introspect) IntrospectToken ¶
func (c *Introspect) IntrospectToken( ctx context.Context, form IntrospectForm, header map[string]string, ) (*IntrospectResponse, error)
type IntrospectForm ¶
type IntrospectResponse ¶
type IntrospectResponse struct { Active bool `json:"active"` ClientID string `json:"client_id,omitempty"` Scope string `json:"scope,omitempty"` Audience []string `json:"aud,omitempty"` ExpiresAt int64 `json:"exp,omitempty"` IssuedAt int64 `json:"iat,omitempty"` Subject string `json:"sub,omitempty"` Username string `json:"username,omitempty"` }
type JWTBearer ¶
type JWTBearer struct { Signer jose.Signer // contains filtered or unexported fields }
func NewJWTBearer ¶
func (*JWTBearer) SetPrivateKey ¶
func (c *JWTBearer) SetPrivateKey(keyID string, privateKey *rsa.PrivateKey) error
type JWTBearerPayload ¶
type RequestError ¶
func (*RequestError) Error ¶
func (r *RequestError) Error() string
Click to show internal directories.
Click to hide internal directories.