interfaces

package
v2.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: OSL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackController

type CallbackController struct {
	responder.RedirectAware
	responder.ErrorAware
	// contains filtered or unexported fields
}

CallbackController handles the oauth2.0 callback

func (*CallbackController) Get

func (cc *CallbackController) Get(c context.Context, request *web.Request) web.Response

Get handler for callbacks

func (*CallbackController) Inject

func (cc *CallbackController) Inject(
	redirectAware responder.RedirectAware,
	errorAware responder.ErrorAware,
	authManager *application.AuthManager,
	logger flamingo.Logger,
	eventPublisher *application.EventPublisher,
	userService application.UserServiceInterface,
	cfg *struct {
		TokenExtras config.Slice `inject:"config:auth.tokenExtras"`
	},
)

Inject CallbackController dependencies

type CallbackControllerInterface

type CallbackControllerInterface interface {
	Get(context.Context, *web.Request) web.Response
}

type DefaultLogoutRedirect

type DefaultLogoutRedirect struct {
	// contains filtered or unexported fields
}

DefaultLogoutRedirect helper

func (*DefaultLogoutRedirect) GetRedirectURL

func (d *DefaultLogoutRedirect) GetRedirectURL(c context.Context, u *url.URL) (string, error)

GetRedirectURL builds default redirect URL for logout

func (*DefaultLogoutRedirect) Inject

func (d *DefaultLogoutRedirect) Inject(manager *application.AuthManager)

Inject DefaultLogoutRedirect dependencies

type LoginController

type LoginController struct {
	responder.RedirectAware
	// contains filtered or unexported fields
}

LoginController handles the login redirect

func (*LoginController) Get

func (l *LoginController) Get(c context.Context, request *web.Request) web.Response

Get handler for logins (redirect)

func (*LoginController) Inject

func (l *LoginController) Inject(
	redirectAware responder.RedirectAware,
	authManager *application.AuthManager,
	ph []LoginGetParameterHook,
)

Inject LoginController dependencies

type LoginControllerInterface

type LoginControllerInterface interface {
	Get(context.Context, *web.Request) web.Response
}

type LoginGetParameterHook

type LoginGetParameterHook interface {
	Parameters(context.Context, *web.Request) map[string]string
}

type LogoutController

type LogoutController struct {
	responder.RedirectAware
	// contains filtered or unexported fields
}

LogoutController handles the logout

func (*LogoutController) Get

func (l *LogoutController) Get(c context.Context, request *web.Request) web.Response

Get handler for logout

func (*LogoutController) Inject

func (l *LogoutController) Inject(
	redirectAware responder.RedirectAware,
	logger flamingo.Logger,
	authManager *application.AuthManager,
	eventPublisher *application.EventPublisher,
	logoutRedirect LogoutRedirectAware,
)

Inject LogoutController dependencies

type LogoutControllerInterface

type LogoutControllerInterface interface {
	Get(context.Context, *web.Request) web.Response
}

type LogoutRedirectAware

type LogoutRedirectAware interface {
	GetRedirectURL(context context.Context, u *url.URL) (string, error)
}

type UserController

type UserController struct {
	// contains filtered or unexported fields
}

UserController uc

func (*UserController) Data

func (u *UserController) Data(c context.Context, r *web.Request) interface{}

Data controller to return userinfo

func (*UserController) Inject

func (u *UserController) Inject(service application.UserServiceInterface)

Inject UserController dependencies

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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