Documentation
¶
Index ¶
Constants ¶
View Source
const (
Name = "oauth2-introspection"
)
Variables ¶
This section is empty.
Functions ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.