Documentation
¶
Index ¶
- Variables
- type AuthenticationResult
- type Authenticator
- type AuthenticatorConstructor
- type AuthenticatorFactory
- type JwtAuthenticator
- type SpiffeAuthenticator
- func (s *SpiffeAuthenticator) Authenticate(ctx context.Context, credentials interface{}) (*AuthenticationResult, error)
- func (s *SpiffeAuthenticator) Close() error
- func (s *SpiffeAuthenticator) Init(ctx context.Context, config map[string]interface{}) error
- func (s *SpiffeAuthenticator) Type() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Provide(
newAuthenticatorFactoryProvider,
)
Functions ¶
This section is empty.
Types ¶
type AuthenticationResult ¶
type Authenticator ¶
type AuthenticatorConstructor ¶
type AuthenticatorConstructor func(config map[string]interface{}) (Authenticator, error)
type AuthenticatorFactory ¶
type AuthenticatorFactory interface {
NewAuthenticator(authConfig config.AuthConfig) (Authenticator, error)
}
type JwtAuthenticator ¶
type JwtAuthenticator struct {
Audiences []string `yaml:"audiences"`
JwksUrl string `yaml:"jwks-url"`
// contains filtered or unexported fields
}
func (*JwtAuthenticator) Authenticate ¶
func (j *JwtAuthenticator) Authenticate(ctx context.Context, credentials interface{}) (*AuthenticationResult, error)
func (*JwtAuthenticator) Close ¶
func (j *JwtAuthenticator) Close() error
func (*JwtAuthenticator) Init ¶
func (j *JwtAuthenticator) Init(ctx context.Context, config map[string]interface{}) error
func (*JwtAuthenticator) Type ¶
func (j *JwtAuthenticator) Type() string
type SpiffeAuthenticator ¶
type SpiffeAuthenticator struct {
SpiffeIDs []string `yaml:"spiffe_ids"`
Audiences []string `yaml:"audiences"`
Endpoint string `yaml:"endpoint"`
// contains filtered or unexported fields
}
func (*SpiffeAuthenticator) Authenticate ¶
func (s *SpiffeAuthenticator) Authenticate(ctx context.Context, credentials interface{}) (*AuthenticationResult, error)
func (*SpiffeAuthenticator) Close ¶
func (s *SpiffeAuthenticator) Close() error
func (*SpiffeAuthenticator) Init ¶
func (s *SpiffeAuthenticator) Init(ctx context.Context, config map[string]interface{}) error
func (*SpiffeAuthenticator) Type ¶
func (s *SpiffeAuthenticator) Type() string
Click to show internal directories.
Click to hide internal directories.