dex

package
v0.102.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

func NewDefaultClient(dexServerAddr string) Client

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL