Documentation ¶
Index ¶
- type FuncProcessor
- type MockGateway
- type SingleRouteRouter
- type SingleUserAuthProvider
- func (p *SingleUserAuthProvider) Info(authData map[string]interface{}) (newAuthData map[string]interface{}, err error)
- func (p *SingleUserAuthProvider) Login(authData map[string]interface{}) (principalID string, newAuthData map[string]interface{}, err error)
- func (p *SingleUserAuthProvider) Logout(authData map[string]interface{}) (newAuthData map[string]interface{}, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncProcessor ¶ added in v0.4.1
func (FuncProcessor) Preprocess ¶ added in v0.4.1
type MockGateway ¶ added in v0.9.0
func NewMockGateway ¶ added in v0.9.0
func (*MockGateway) Request ¶ added in v0.9.0
func (g *MockGateway) Request(method string, body string) *httptest.ResponseRecorder
type SingleRouteRouter ¶
SingleRouteRouter is a router that only serves with a single handler, regardless of the requested action.
func NewSingleRouteRouter ¶
func NewSingleRouteRouter(handler router.Handler, prepareFunc func(*router.Payload)) *SingleRouteRouter
NewSingleRouteRouter creates a SingleRouteRouter, mapping the specified handler as the only route.
func (*SingleRouteRouter) POST ¶
func (r *SingleRouteRouter) POST(body string) *httptest.ResponseRecorder
POST invoke the only route mapped on the SingleRouteRouter.
type SingleUserAuthProvider ¶
type SingleUserAuthProvider struct {
// contains filtered or unexported fields
}
SingleUserAuthProvider is an AuthProvider that only authenticates a single user if the auth data provided contains the required principal name.
func NewSingleUserAuthProvider ¶
func NewSingleUserAuthProvider(providerName string, principalName string) *SingleUserAuthProvider
NewSingleUserAuthProvider creates a new instance of SingleUserAuthProvider.
func (*SingleUserAuthProvider) Info ¶
func (p *SingleUserAuthProvider) Info(authData map[string]interface{}) (newAuthData map[string]interface{}, err error)
Info implements the AuthProvider's Info interface.
Click to show internal directories.
Click to hide internal directories.