Documentation
¶
Index ¶
- func AddCommonActions(apiContext *types.APIContext, resource *types.RawResource)
- func HandleCommonAction(actionName string, action *types.Action, request *types.APIContext, ...) (bool, error)
- func NewUserManager(scaledContext *config.ScaledContext) (user.Manager, error)
- func TransformToAuthProvider(authConfig map[string]interface{}) map[string]interface{}
- type AuthProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommonActions ¶
func AddCommonActions(apiContext *types.APIContext, resource *types.RawResource)
func HandleCommonAction ¶
func HandleCommonAction(actionName string, action *types.Action, request *types.APIContext, authConfigName string, authConfigs v3.AuthConfigInterface) (bool, error)
func NewUserManager ¶
func NewUserManager(scaledContext *config.ScaledContext) (user.Manager, error)
func TransformToAuthProvider ¶
func TransformToAuthProvider(authConfig map[string]interface{}) map[string]interface{}
Types ¶
type AuthProvider ¶
type AuthProvider interface {
GetName() string
AuthenticateUser(input interface{}) (v3.Principal, []v3.Principal, string, error)
SearchPrincipals(name, principalType string, myToken v3.Token) ([]v3.Principal, error)
GetPrincipal(principalID string, token v3.Token) (v3.Principal, error)
CustomizeSchema(schema *types.Schema)
TransformToAuthProvider(authConfig map[string]interface{}) map[string]interface{}
}
Click to show internal directories.
Click to hide internal directories.