auth

package
v0.0.0-...-cc62b53 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Auth initialize Auth for Authentication
	Auth = clean.New(&auth.Config{
		DB:         db.DB,
		Mailer:     config.Mailer,
		Render:     render.New(&render.Config{AssetFileSystem: bindatafs.AssetFS.NameSpace("auth")}),
		UserModel:  users.User{},
		Redirector: auth.Redirector{RedirectBack: config.RedirectBack},
	})

	// Authority initialize Authority for Authorization
	Authority = authority.New(&authority.Config{
		Auth: Auth,
	})
)

Functions

This section is empty.

Types

type AdminAuth

type AdminAuth struct {
}

func (AdminAuth) GetCurrentUser

func (AdminAuth) GetCurrentUser(c *admin.Context) qor.CurrentUser

func (AdminAuth) LoginURL

func (AdminAuth) LoginURL(c *admin.Context) string

func (AdminAuth) LogoutURL

func (AdminAuth) LogoutURL(c *admin.Context) string

Jump to

Keyboard shortcuts

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