Documentation ¶
Index ¶
- Variables
- func AddOIDCConfigAccessor(builder *di.Builder, obj interface{})
- type ClaimFact
- type ClaimFactDirective
- type ClaimsConfig
- type DiscoveryDocument
- type EntryPointConfig
- type IOIDCConfig
- type IOIDCConfigAccessor
- type JSONWebKey
- type JSONWebKeyResponse
- type NewGinIntrospectionValidationMiddlewareOptions
- type NewJWTValidationMiddlewareOptions
- type NewOIDCAuthenticationOptions
- type OIDCConfig
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TypeIOIDCConfig ... TypeIOIDCConfig = di.GetInterfaceReflectType((*IOIDCConfig)(nil)) // TypeIOIDCConfigAccessor ... TypeIOIDCConfigAccessor = di.GetInterfaceReflectType((*IOIDCConfigAccessor)(nil)) )
Functions ¶
func AddOIDCConfigAccessor ¶
AddOIDCConfigAccessor adds service to the DI container
Types ¶
type ClaimFact ¶ added in v0.1.207
type ClaimFact struct { Claim claimsprincipalContracts.Claim Directive ClaimFactDirective }
ClaimFact ...
func NewClaimFactType ¶ added in v0.1.208
NewClaimFactType ...
func NewClaimFactTypeAndValue ¶ added in v0.1.208
NewClaimFactTypeAndValue ...
func NewClaimFactTypeAndValueClaim ¶ added in v0.1.208
func NewClaimFactTypeAndValueClaim(claim claimsprincipalContracts.Claim) ClaimFact
NewClaimFactTypeAndValueClaim ...
type ClaimFactDirective ¶ added in v0.1.207
type ClaimFactDirective int64
ClaimFactDirective ...
const ( // ClaimTypeAndValue ... ClaimTypeAndValue ClaimFactDirective = 0 // ClaimType ... ClaimType = 1 )
type ClaimsConfig ¶
type ClaimsConfig struct { OR []*ClaimFact `mapstructure:"OR"` AND []*ClaimFact `mapstructure:"AND"` }
ClaimsConfig ...
type DiscoveryDocument ¶
type DiscoveryDocument struct { DiscoveryURL url.URL Algorithms []string `json:"id_token_signing_alg_values_supported"` IntrospectionEndpoint string Issuer string `json:"issuer"` JWKSURL string `json:"jwks_uri"` KeyResponse *JSONWebKeyResponse }
DiscoveryDocument ...
func NewDiscoveryDocument ¶
func NewDiscoveryDocument(discoveryURL url.URL) *DiscoveryDocument
func (*DiscoveryDocument) Initialize ¶
func (document *DiscoveryDocument) Initialize() error
type EntryPointConfig ¶
type EntryPointConfig struct { FullMethodName string `mapstructure:"FULL_METHOD_NAME"` ClaimsConfig ClaimsConfig `mapstructure:"CLAIMS_CONFIG"` }
EntryPointConfig ...
type IOIDCConfig ¶
type IOIDCConfig interface { GetAuthority() string GetCronRefreshSchedule() string GetEntryPoints() map[string]*EntryPointConfig }
IOIDCConfig ...
type IOIDCConfigAccessor ¶
type IOIDCConfigAccessor interface {
GetOIDCConfig() IOIDCConfig
}
IOIDCConfigAccessor ...
func GetOIDCConfigAccessorFromContainer ¶
func GetOIDCConfigAccessorFromContainer(ctn di.Container) IOIDCConfigAccessor
type JSONWebKey ¶
type JSONWebKey struct { Alg string `json:"alg"` Kty string `json:"kty"` Kid string `json:"kid"` Use string `json:"use"` N string `json:"n"` E string `json:"e"` X5c []string `json:"x5c"` }
JSONWebKey ...
type JSONWebKeyResponse ¶
type JSONWebKeyResponse struct {
Keys []JSONWebKey `json:"keys"`
}
JSONWebKeyResponse ...
type NewGinIntrospectionValidationMiddlewareOptions ¶
type NewGinIntrospectionValidationMiddlewareOptions struct { Out io.Writer LogLevel logrus.Level DiscoveryURL *url.URL ClientID string ClientSecret string }
NewGinIntrospectionValidationMiddlewareOptions ...
type NewJWTValidationMiddlewareOptions ¶
type NewJWTValidationMiddlewareOptions struct { Out io.Writer LogLevel logrus.Level DiscoveryURL *url.URL }
NewJWTValidationMiddlewareOptions ...
type NewOIDCAuthenticationOptions ¶
NewOIDCAuthenticationOptions ...
type OIDCConfig ¶
type OIDCConfig struct { Authority string `mapstructure:"AUTHORITY"` // CronRefreshSchedule i.e. @every 0h1m0s CronRefreshSchedule string `mapstructure:"CRON_REFRESH_SCHEDULE"` EntryPoints map[string]*EntryPointConfig `mapstructure:"ENTRY_POINTS"` }
OIDCConfig env:OIDC_CONFIG
func (*OIDCConfig) GetCronRefreshSchedule ¶
func (c *OIDCConfig) GetCronRefreshSchedule() string
GetCronRefreshSchedule ...
func (*OIDCConfig) GetEntryPoints ¶
func (c *OIDCConfig) GetEntryPoints() map[string]*EntryPointConfig
GetEntryPoints ...
Click to show internal directories.
Click to hide internal directories.