Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
Authorizer data model
func NewAuthorizer ¶
func NewAuthorizer(authValidator Validator, userPermissioner UserPermissioner) Authorizer
NewAuthorizer creates a new authorizer based on the specified parameters
func (Authorizer) SecurityAuth ¶
SecurityAuth creates a new CLA user based on the token and scopes
type UserPermissioner ¶
type UserPermissioner interface { GetUserAndProfilesByLFID(lfidUsername string) (user.CLAUser, error) GetUserProjectIDs(userID string) ([]string, error) GetClaManagerCorporateClaIDs(userID string) ([]string, error) GetUserCompanyIDs(userID string) ([]string, error) }
UserPermissioner interface methods
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator data model
func NewAuthValidator ¶
NewAuthValidator creates a new auth0 validator based on the specified parameters
Click to show internal directories.
Click to hide internal directories.