Documentation
¶
Index ¶
- type Authenticator
- func (authenticator *Authenticator) AuthenticatorHandler(c *gin.Context) (interface{}, error)
- func (authenticator *Authenticator) AuthorizatorHandler(data interface{}, c *gin.Context) bool
- func (authenticator *Authenticator) CreateMiddleware() error
- func (authenticator *Authenticator) GetAuthEmail(c *gin.Context) string
- func (authenticator *Authenticator) GetAuthEmailVerification(c *gin.Context) bool
- func (authenticator *Authenticator) GetAuthUserId(c *gin.Context) uint
- func (authenticator *Authenticator) GetBaseAuthenticator() makeless_go_authenticator.Authenticator
- func (authenticator *Authenticator) GetIdentityKey() string
- func (authenticator *Authenticator) GetKey() []byte
- func (authenticator *Authenticator) GetMaxRefresh() time.Duration
- func (authenticator *Authenticator) GetMiddleware() *jwt.GinJWTMiddleware
- func (authenticator *Authenticator) GetRealm() string
- func (authenticator *Authenticator) GetSecurity() makeless_go_security.Security
- func (authenticator *Authenticator) GetTimeout() time.Duration
- func (authenticator *Authenticator) GetUsers() []*makeless_go_model.User
- func (authenticator *Authenticator) IdentityHandler(c *gin.Context) interface{}
- func (authenticator *Authenticator) PayloadHandler(data interface{}) jwt.MapClaims
- func (authenticator *Authenticator) SetMiddleware(middleware *jwt.GinJWTMiddleware)
- func (authenticator *Authenticator) UnauthorizedHandler(c *gin.Context, code int, message string)
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) 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) 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)
Click to show internal directories.
Click to hide internal directories.