Documentation ¶
Index ¶
- Constants
- Variables
- type AuthJwt
- func (a *AuthJwt) Authentication(token string) (user *v1beta1.UserInfo, err error)
- func (a *AuthJwt) GenerateToken(user *v1beta1.UserInfo) (string, error)
- func (a *AuthJwt) GenerateTokenWithExpired(user *v1beta1.UserInfo, expireDuration int64) (string, error)
- func (a *AuthJwt) RefreshToken(token string) (*v1beta1.UserInfo, string, error)
- type Claims
Constants ¶
View Source
const BearerTokenPrefix = "Bearer"
Variables ¶
View Source
var (
Config authentication.JwtConfig
)
Functions ¶
This section is empty.
Types ¶
type AuthJwt ¶
func GetAuthJwtImpl ¶
func GetAuthJwtImpl() *AuthJwt
func (*AuthJwt) Authentication ¶
func (*AuthJwt) GenerateToken ¶
func (*AuthJwt) GenerateTokenWithExpired ¶
Click to show internal directories.
Click to hide internal directories.