makeless_go_authenticator_in_memory

package module
v1.0.0-beta.27 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 9 Imported by: 0

README

Makeless - Authenticator In-Memory

Makeless - SaaS Ecosystem - Golang In-Memory Authenticator Implementation

Build Status

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	BaseAuthenticator makeless_go_authenticator.Authenticator
	Users             []*makeless_go_model.User

	*sync.RWMutex
}

func (*Authenticator) AuthenticatorHandler

func (authenticator *Authenticator) AuthenticatorHandler(c *gin.Context) (interface{}, error)

func (*Authenticator) AuthorizatorHandler

func (authenticator *Authenticator) AuthorizatorHandler(data interface{}, c *gin.Context) bool

func (*Authenticator) CreateMiddleware

func (authenticator *Authenticator) CreateMiddleware() error

func (*Authenticator) GetAuthEmail

func (authenticator *Authenticator) GetAuthEmail(c *gin.Context) string

func (*Authenticator) GetAuthEmailVerification

func (authenticator *Authenticator) GetAuthEmailVerification(c *gin.Context) bool

func (*Authenticator) GetAuthUserId

func (authenticator *Authenticator) GetAuthUserId(c *gin.Context) uint

func (*Authenticator) GetBaseAuthenticator

func (authenticator *Authenticator) GetBaseAuthenticator() makeless_go_authenticator.Authenticator

func (*Authenticator) GetCookieDomain

func (authenticator *Authenticator) GetCookieDomain() string

func (*Authenticator) GetCookieSameSite

func (authenticator *Authenticator) GetCookieSameSite() http.SameSite

func (*Authenticator) GetIdentityKey

func (authenticator *Authenticator) GetIdentityKey() string

func (*Authenticator) GetKey

func (authenticator *Authenticator) GetKey() []byte

func (*Authenticator) GetMaxRefresh

func (authenticator *Authenticator) GetMaxRefresh() time.Duration

func (*Authenticator) GetMiddleware

func (authenticator *Authenticator) GetMiddleware() *jwt.GinJWTMiddleware

func (*Authenticator) GetRealm

func (authenticator *Authenticator) GetRealm() string

func (*Authenticator) GetSecureCookie

func (authenticator *Authenticator) GetSecureCookie() bool

func (*Authenticator) GetSecurity

func (authenticator *Authenticator) GetSecurity() makeless_go_security.Security

func (*Authenticator) GetTimeout

func (authenticator *Authenticator) GetTimeout() time.Duration

func (*Authenticator) GetUsers

func (authenticator *Authenticator) GetUsers() []*makeless_go_model.User

func (*Authenticator) IdentityHandler

func (authenticator *Authenticator) IdentityHandler(c *gin.Context) interface{}

func (*Authenticator) PayloadHandler

func (authenticator *Authenticator) PayloadHandler(data interface{}) jwt.MapClaims

func (*Authenticator) SetMiddleware

func (authenticator *Authenticator) SetMiddleware(middleware *jwt.GinJWTMiddleware)

func (*Authenticator) UnauthorizedHandler

func (authenticator *Authenticator) UnauthorizedHandler(c *gin.Context, code int, message string)

Jump to

Keyboard shortcuts

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