Documentation ¶
Index ¶
- Variables
- func MakeInMemoryUserProvider(settings kodex.Settings) (api.UserProvider, error)
- func ValidateInMemoryUserProviderSettings(settings map[string]interface{}) (interface{}, error)
- type InMemoryUserProvider
- func (i *InMemoryUserProvider) Create(user *api.ExternalUser) error
- func (i *InMemoryUserProvider) Get(controller api.Controller, request *http.Request) (*api.ExternalUser, error)
- func (i *InMemoryUserProvider) Initialize(controller api.Controller, group *gin.RouterGroup) error
- func (i *InMemoryUserProvider) Logout(controller api.Controller, request *http.Request, writer http.ResponseWriter) error
- type InMemoryUserProviderSettings
Constants ¶
This section is empty.
Variables ¶
View Source
var Definitions = api.UserProviderDefinitions{ "inMemory": api.UserProviderDefinition{ Name: "InMemory", Description: "InMemory based user provider", Maker: MakeInMemoryUserProvider, SettingsValidator: ValidateInMemoryUserProviderSettings, }, }
View Source
var InMemoryUserProviderForm = api.BlueprintConfigForm
Functions ¶
func MakeInMemoryUserProvider ¶
func MakeInMemoryUserProvider(settings kodex.Settings) (api.UserProvider, error)
Types ¶
type InMemoryUserProvider ¶
type InMemoryUserProvider struct {
// contains filtered or unexported fields
}
func (*InMemoryUserProvider) Create ¶
func (i *InMemoryUserProvider) Create(user *api.ExternalUser) error
func (*InMemoryUserProvider) Get ¶
func (i *InMemoryUserProvider) Get(controller api.Controller, request *http.Request) (*api.ExternalUser, error)
Return a user with the given access token
func (*InMemoryUserProvider) Initialize ¶ added in v0.1.0
func (i *InMemoryUserProvider) Initialize(controller api.Controller, group *gin.RouterGroup) error
func (*InMemoryUserProvider) Logout ¶ added in v0.1.0
func (i *InMemoryUserProvider) Logout(controller api.Controller, request *http.Request, writer http.ResponseWriter) error
type InMemoryUserProviderSettings ¶
type InMemoryUserProviderSettings struct {
api.BlueprintSpec
}
Click to show internal directories.
Click to hide internal directories.