Documentation ¶
Index ¶
- Variables
- func AddOIDCConfigAccessor(builder *di.Builder, obj interface{})
- 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 = di.GetInterfaceReflectType((*IOIDCConfig)(nil)) TypeIOIDCConfigAccessor = di.GetInterfaceReflectType((*IOIDCConfigAccessor)(nil)) )
Functions ¶
func AddOIDCConfigAccessor ¶
AddOIDCConfigAccessor adds service to the DI container
Types ¶
type ClaimsConfig ¶
type ClaimsConfig struct { OR []claimsprincipalContracts.Claim `mapstructure:"OR"` AND []claimsprincipalContracts.Claim `mapstructure:"AND"` }
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 }
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"` }
type IOIDCConfig ¶
type IOIDCConfig interface { GetAuthority() string GetCronRefreshSchedule() string GetEntryPoints() map[string]EntryPointConfig }
type IOIDCConfigAccessor ¶
type IOIDCConfigAccessor interface {
GetOIDCConfig() IOIDCConfig
}
func GetOIDCConfigAccessorFromContainer ¶
func GetOIDCConfigAccessorFromContainer(ctn di.Container) IOIDCConfigAccessor
type JSONWebKey ¶
type JSONWebKeyResponse ¶
type JSONWebKeyResponse struct {
Keys []JSONWebKey `json:"keys"`
}
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) GetAuthority ¶
func (c *OIDCConfig) GetAuthority() string
func (*OIDCConfig) GetCronRefreshSchedule ¶
func (c *OIDCConfig) GetCronRefreshSchedule() string
func (*OIDCConfig) GetEntryPoints ¶
func (c *OIDCConfig) GetEntryPoints() map[string]EntryPointConfig
Click to show internal directories.
Click to hide internal directories.