Documentation
¶
Index ¶
- func CompareHashAndPassword(password string, hashedPassword string) error
- func GenerateHashFromPassword(password string) string
- func GenerateRandomString(length int) (string, error)
- func Initialize(s SessionProvider, cookieStoreAuthenticationKey string, ...)
- type SessionProvider
- type TokenData
- func Authorize(r *http.Request, developmentMode bool) (session *sessions.Session, tokenData *TokenData, err error)
- func AuthorizeJSON(r *http.Request, developmentMode bool) (tokenData *TokenData, err error)
- func Login(userId string, fromHttp bool, developmentMode bool) (tokenData *TokenData, err error)
- func Logout(session *sessions.Session, developmentMode bool) (originalTokenData *TokenData)
- func ParseToken(tokenString string, fromHttp bool, developmentMode bool) (tokenData *TokenData, err error)
- func ParseTokenWithRefreshToken(tokenString string, refreshTokenString string, fromHttp bool, ...) (newToken bool, tokenData *TokenData, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareHashAndPassword ¶
func GenerateRandomString ¶
func Initialize ¶
func Initialize(s SessionProvider, cookieStoreAuthenticationKey string, cookieStoreEncryptionKey string, jwtSigningKeyString string, cookieIssuer string)
Types ¶
type SessionProvider ¶
Click to show internal directories.
Click to hide internal directories.