Documentation ¶
Index ¶
- Variables
- func AddOIDCConfigAccessor(builder *di.Builder, obj interface{})
- type ClaimFact
- type ClaimFactDirective
- type ClaimsConfig
- func (s *ClaimsConfig) GetChild() *ClaimsConfig
- func (s *ClaimsConfig) WithGrpcEntrypointPermissionsClaimFactsMapAND(claimFacts ...*services_claimfact.ClaimFact) *ClaimsConfig
- func (s *ClaimsConfig) WithGrpcEntrypointPermissionsClaimFactsMapOR(claimFacts ...*services_claimfact.ClaimFact) *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 ¶
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 contracts_core_claimsprincipal.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 contracts_core_claimsprincipal.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 []*services_claimfact.ClaimFact `mapstructure:"OR"` AND []*services_claimfact.ClaimFact `mapstructure:"AND"` Child *ClaimsConfig }
ClaimsConfig ...
func (*ClaimsConfig) GetChild ¶ added in v0.1.215
func (s *ClaimsConfig) GetChild() *ClaimsConfig
GetChild gets or creates a child config that will be changed to the parent for evalutation
func (*ClaimsConfig) WithGrpcEntrypointPermissionsClaimFactsMapAND ¶ added in v0.1.215
func (s *ClaimsConfig) WithGrpcEntrypointPermissionsClaimFactsMapAND(claimFacts ...*services_claimfact.ClaimFact) *ClaimsConfig
WithGrpcEntrypointPermissionsClaimFactsMapAND helper to add a single entrypoint config
func (*ClaimsConfig) WithGrpcEntrypointPermissionsClaimFactsMapOR ¶ added in v0.1.215
func (s *ClaimsConfig) WithGrpcEntrypointPermissionsClaimFactsMapOR(claimFacts ...*services_claimfact.ClaimFact) *ClaimsConfig
WithGrpcEntrypointPermissionsClaimFactsMapOR helper to add a single entrypoint config
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"` MetaData map[string]interface{} `mapstructure:"META_DATA"` }
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 ...