Documentation
¶
Index ¶
Constants ¶
View Source
const ( SessionCookieName = "SessionId" StateCookieName = "state" RedirectCookieName = "redirect_url" SessionMaxAge = 86400 // 24 hours AuthCookieMaxAge = 300 // 5 minutes )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CookieManager ¶
type CookieManager struct {
// contains filtered or unexported fields
}
func NewCookieManager ¶
func NewCookieManager( config *config.Config, ) CookieManager
func (*CookieManager) CreateAuthCookies ¶
func (cm *CookieManager) CreateAuthCookies(state, redirectURL string) []*http.Cookie
func (*CookieManager) CreateRevokeCookie ¶
func (cm *CookieManager) CreateRevokeCookie() *http.Cookie
func (*CookieManager) CreateSessionCookie ¶
func (cm *CookieManager) CreateSessionCookie(token string) *http.Cookie
Click to show internal directories.
Click to hide internal directories.