Documentation
¶
Index ¶
- Variables
- type Option
- func WithAutoProvisionClaims(claims config.AutoProvisionClaims) Option
- func WithLogger(l log.Logger) Option
- func WithMachineAuthAPIKey(ma string) Option
- func WithOIDCissuer(oidcISS string) Option
- func WithRevaGatewaySelector(selectable pool.Selectable[gateway.GatewayAPIClient]) Option
- func WithSelector(selector selector.Selector) Option
- func WithServiceAccount(c config.ServiceAccount) Option
- type Options
- type UserBackend
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAccountNotFound account not found ErrAccountNotFound = errors.New("user not found") // ErrAccountDisabled account disabled ErrAccountDisabled = errors.New("account disabled") // ErrNotSupported operation not supported by user-backend ErrNotSupported = errors.New("operation not supported") )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func WithAutoProvisionClaims ¶
func WithAutoProvisionClaims(claims config.AutoProvisionClaims) Option
func WithMachineAuthAPIKey ¶
WithMachineAuthAPIKey configures the machine auth API key
func WithOIDCissuer ¶
WithOIDCissuer set the OIDC issuer URL
func WithRevaGatewaySelector ¶
func WithRevaGatewaySelector(selectable pool.Selectable[gateway.GatewayAPIClient]) Option
WithRevaGatewaySelector set the gatewaySelector option
func WithSelector ¶
WithSelector set the Selector option
func WithServiceAccount ¶
func WithServiceAccount(c config.ServiceAccount) Option
WithServiceAccount configures the service account creator to use
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options defines the available options for this package.
type UserBackend ¶
type UserBackend interface {
GetUserByClaims(ctx context.Context, claim, value string) (*cs3.User, string, error)
Authenticate(ctx context.Context, username string, password string) (*cs3.User, string, error)
CreateUserFromClaims(ctx context.Context, claims map[string]interface{}) (*cs3.User, error)
UpdateUserIfNeeded(ctx context.Context, user *cs3.User, claims map[string]interface{}) error
SyncGroupMemberships(ctx context.Context, user *cs3.User, claims map[string]interface{}) error
}
UserBackend allows the proxy to retrieve users from different user-backends (accounts-service, CS3)
func NewCS3UserBackend ¶
func NewCS3UserBackend(opts ...Option) UserBackend
NewCS3UserBackend creates a user-provider which fetches users from a CS3 UserBackend
Click to show internal directories.
Click to hide internal directories.