Documentation
¶
Index ¶
- func AudienceForToken(req *http.Request) any
- func FilterOutAuthTokenCookie(req *http.Request)
- type CookieManager
- func (cm *CookieManager) ClearCookies(w http.ResponseWriter) error
- func (cm *CookieManager) IDClaims(authClaims jwt.MapClaims, groups []string) jwt.MapClaims
- func (cm *CookieManager) Issuer() string
- func (cm *CookieManager) MintToken(claims jwt.MapClaims, ttl time.Duration, audience any, alg string) (string, error)
- func (cm *CookieManager) Nonce(w http.ResponseWriter, req *http.Request) string
- func (cm *CookieManager) SetAuthTokenCookie(w http.ResponseWriter, req *http.Request, ...) error
- func (cm *CookieManager) SetIDTokenCookie(w http.ResponseWriter, req *http.Request, authClaims jwt.MapClaims, ...) error
- func (cm *CookieManager) SetNonce(w http.ResponseWriter, nonce string)
- func (cm *CookieManager) ValidateAuthTokenCookie(req *http.Request) (*jwt.Token, string, error)
- func (cm *CookieManager) ValidateAuthorizationHeader(req *http.Request) (*jwt.Token, error)
- func (cm *CookieManager) ValidateExpiredAuthTokenCookie(req *http.Request) (*jwt.Token, string, error)
- func (cm *CookieManager) ValidateIDTokenCookie(req *http.Request, authToken *jwt.Token) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AudienceForToken ¶ added in v0.20.0
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) Issuer ¶ added in v0.20.0
func (cm *CookieManager) Issuer() string
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, req *http.Request, userID, email, sessionID, host string, extraClaims map[string]any) error
func (*CookieManager) SetIDTokenCookie ¶
func (cm *CookieManager) SetIDTokenCookie(w http.ResponseWriter, req *http.Request, authClaims jwt.MapClaims, groups []string) 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) ValidateExpiredAuthTokenCookie ¶ added in v0.22.2
func (*CookieManager) ValidateIDTokenCookie ¶
Click to show internal directories.
Click to hide internal directories.