Documentation ¶
Index ¶
- Constants
- func Configure(ctx context.Context, mgmtCtx *config.ScaledContext, tokenMGR *tokens.Manager) common.AuthProvider
- type Provider
- func (l *Provider) AuthenticateUser(input interface{}) (v3.Principal, []v3.Principal, string, error)
- func (l *Provider) CustomizeSchema(schema *types.Schema)
- func (l *Provider) GetName() string
- func (l *Provider) GetPrincipal(principalID string, token v3.Token) (v3.Principal, error)
- func (l *Provider) SearchPrincipals(searchKey, principalType string, token v3.Token) ([]v3.Principal, error)
- func (l *Provider) SearchPrincipalsDedupe(searchKey, principalType string, token v3.Token, ...) ([]v3.Principal, error)
- func (l *Provider) TransformToAuthProvider(authConfig map[string]interface{}) map[string]interface{}
Constants ¶
View Source
const (
Name = "local"
)
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
func Configure(ctx context.Context, mgmtCtx *config.ScaledContext, tokenMGR *tokens.Manager) common.AuthProvider
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) AuthenticateUser ¶
func (*Provider) CustomizeSchema ¶
func (*Provider) GetPrincipal ¶
func (*Provider) SearchPrincipals ¶
func (*Provider) SearchPrincipalsDedupe ¶
func (l *Provider) SearchPrincipalsDedupe(searchKey, principalType string, token v3.Token, principalsFromOtherProviders []v3.Principal) ([]v3.Principal, error)
SearchPrincipalsDedupe performs principal search, but deduplicates the results against the supplied list (that should have come from other non-local auth providers) This is to avoid getting duplicate search results
func (*Provider) TransformToAuthProvider ¶
Click to show internal directories.
Click to hide internal directories.