Documentation ¶
Index ¶
- func FilterOutAuthTokenCookie(req *http.Request, names ...string)
- type CookieManager
- func (cm *CookieManager) ClearCookies(w http.ResponseWriter) error
- func (cm *CookieManager) Nonce(w http.ResponseWriter, req *http.Request) string
- func (cm *CookieManager) SetAuthTokenCookie(w http.ResponseWriter, userID, email, sessionID, host string, ...) error
- func (cm *CookieManager) SetIDTokenCookie(w http.ResponseWriter, req *http.Request, authToken *jwt.Token) error
- func (cm *CookieManager) SetNonce(w http.ResponseWriter, nonce string)
- func (cm *CookieManager) ValidateAuthTokenCookie(req *http.Request) (*jwt.Token, error)
- func (cm *CookieManager) ValidateAuthorizationHeader(req *http.Request) (*jwt.Token, error)
- func (cm *CookieManager) ValidateIDTokenCookie(req *http.Request, authToken *jwt.Token) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CookieManager ¶
type CookieManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(tm *tokenmanager.TokenManager, provider, domain, issuer string) *CookieManager
func (*CookieManager) ClearCookies ¶
func (cm *CookieManager) ClearCookies(w http.ResponseWriter) error
func (*CookieManager) Nonce ¶ added in v0.4.1
func (cm *CookieManager) Nonce(w http.ResponseWriter, req *http.Request) string
func (*CookieManager) SetAuthTokenCookie ¶
func (cm *CookieManager) SetAuthTokenCookie(w http.ResponseWriter, userID, email, sessionID, host string, extraClaims map[string]any) error
func (*CookieManager) SetIDTokenCookie ¶
func (cm *CookieManager) SetIDTokenCookie(w http.ResponseWriter, req *http.Request, authToken *jwt.Token) error
func (*CookieManager) SetNonce ¶ added in v0.4.1
func (cm *CookieManager) SetNonce(w http.ResponseWriter, nonce string)
func (*CookieManager) ValidateAuthTokenCookie ¶
func (*CookieManager) ValidateAuthorizationHeader ¶ added in v0.0.25
func (*CookieManager) ValidateIDTokenCookie ¶
Click to show internal directories.
Click to hide internal directories.