Documentation ¶
Index ¶
- Variables
- func ClientDecrypter(key, clientID, clientSecret string) (name, id string, err error)
- func ClientEncrypter(key, appName, appID string) (clientID, clientSecret string, err error)
- func CreateJWTCookie(jwtID string, issuer string, ctx *contx.Context)
- func GenerateJWTToken(app *App, ctx *contx.Context) string
- func InvalidateJWTToken(ctx *contx.Context)
- func LoginRequired(ctx *contx.Context)
- func LoginRequiredApi(ctx *contx.Context)
- type App
- type Claims
- type Oauth
Constants ¶
This section is empty.
Variables ¶
DB
Functions ¶
func ClientDecrypter ¶
ClientDecrypter decrypt client token
func ClientEncrypter ¶
ClientEncrypter encrypts new client
func CreateJWTCookie ¶
CreateJWTCookie create cookie with jwt token
func GenerateJWTToken ¶
GenerateJWTToken generate jwt token
func InvalidateJWTToken ¶
InvalidateJWTToken invalidate jwt token
Types ¶
Click to show internal directories.
Click to hide internal directories.