oauth2_introspection

package
v0.22.13 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "oauth2-introspection"
)

Variables

This section is empty.

Functions

func Check

func Check(conf *Config) error

func Create

func Create(id, name string, conf *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Config

type Config struct {
	IntrospectionEndpoint  string   `json:"introspection_endpoint"`
	IntrospectionSSLVerify bool     `json:"introspection_ssl_verify" default:"true"`
	ClientID               string   `json:"client_id"`
	ClientSecret           string   `json:"client_secret"`
	TokenHeader            string   `json:"token_header"`
	Scopes                 []string `json:"scopes"`
	TTL                    int      `json:"ttl" default:"600"`
	CustomClaimsForward    []string `json:"custom_claims_forward"`
	ConsumerBy             string   `json:"consumer_by"`
	AllowAnonymous         bool     `json:"allow_anonymous" default:"false"`
	HideCredential         bool     `json:"hide_credential" default:"false"`
}

type IntrospectionResponseBody

type IntrospectionResponseBody struct {
	Active   bool   `json:"active"`
	ClientId string `json:"client_id"`
	Username string `json:"username"`
	Scope    string `json:"scope"`
	Sub      string `json:"sub"`
	Aud      string `json:"aud"`
	Iss      string `json:"iss"`
	Exp      int64  `json:"exp"`
	Iat      int64  `json:"iat"`
	Nbf      int64  `json:"nbf"`
	Jti      string `json:"jti"`
}

Jump to

Keyboard shortcuts

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