auth

package
v0.0.0-...-860bb2b Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 18 Imported by: 23

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