providers

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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)

func ValidateInMemoryUserProviderSettings

func ValidateInMemoryUserProviderSettings(settings map[string]interface{}) (interface{}, 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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL