Documentation
¶
Index ¶
- Constants
- func AuthMiddleware(next http.Handler) http.Handler
- func CreateRefreshToken() string
- func CreateToken(account *authEntities.Account, permissions map[string]string) (string, time.Time, error)
- func DecodeToken(tokenString string) (*dto.ClaimsJWT, error)
- func GetAccountIDByJWTToken(token string) (uuid.UUID, error)
- func GetRepositoryPermissionsByJWTTOken(token string) (map[string]string, error)
Constants ¶
View Source
const DefaultSecretJWT = "horusec-secret"
Variables ¶
This section is empty.
Functions ¶
func CreateRefreshToken ¶
func CreateRefreshToken() string
func CreateToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.