Documentation ¶
Index ¶
Constants ¶
View Source
const ( Header fetchType = iota Cookie )
Variables ¶
View Source
var (
)Functions ¶
This section is empty.
Types ¶
type JwtAuthMiddleware ¶
type JwtAuthMiddleware interface { AuthenticationMiddleware() gin.HandlerFunc LoginRequiredMiddleware() gin.HandlerFunc LoginHandler() // contains filtered or unexported methods }
type JwtAuthentication ¶
type JwtAuthentication struct { Authenticator func(c *gin.Context) (interface{}, error) Authorizator func(data interface{}) (interface{}, error) SecretKey interface{} Algorithm jwa.SignatureAlgorithm IdentityKey string TokenLookup TokenLookup TokenHeadName string }
func (*JwtAuthentication) AuthenticationMiddleware ¶
func (ja *JwtAuthentication) AuthenticationMiddleware() gin.HandlerFunc
func (*JwtAuthentication) LoginHandler ¶
func (ja *JwtAuthentication) LoginHandler(c *gin.Context)
func (*JwtAuthentication) LoginRequiredMiddleware ¶
func (ja *JwtAuthentication) LoginRequiredMiddleware() gin.HandlerFunc
type TokenLookup ¶
type TokenLookup struct { From fetchType Name string }
Click to show internal directories.
Click to hide internal directories.