Documentation
¶
Index ¶
- func DeleteAdminCookie(gc *gin.Context, adminCookieSecure bool)
- func DeleteMfaSession(gc *gin.Context, appCookieSecure bool)
- func DeleteSession(gc *gin.Context, appCookieSecure bool, sameSite http.SameSite)
- func GetAdminCookie(gc *gin.Context) (string, error)
- func GetMfaSession(gc *gin.Context) (string, error)
- func GetSession(gc *gin.Context) (string, error)
- func ParseSameSite(value string) http.SameSite
- func SetAdminCookie(gc *gin.Context, token string, adminCookieSecure bool)
- func SetMfaSession(gc *gin.Context, sessionID string, appCookieSecure bool)
- func SetSession(gc *gin.Context, sessionID string, appCookieSecure bool, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAdminCookie ¶
DeleteAdminCookie sets the response cookie to empty
func DeleteMfaSession ¶
DeleteMfaSession deletes the mfa session cookies to expire
func DeleteSession ¶
DeleteSession sets session cookies to expire
func GetAdminCookie ¶
GetAdminCookie gets the admin cookie from the request
func GetMfaSession ¶
GetMfaSession gets the mfa session cookie from context
func GetSession ¶
GetSession gets the session cookie from context
func ParseSameSite ¶
ParseSameSite converts a string ("lax", "strict", "none") to http.SameSite. Defaults to Lax for unrecognized values. The CLI flag --app-cookie-same-site defaults to "none" for backward compatibility with cross-domain SDK setups.
func SetAdminCookie ¶
SetAdminCookie sets the admin cookie in the response
func SetMfaSession ¶
SetMfaSession sets the mfa session cookie in the response
Types ¶
This section is empty.