Documentation
¶
Index ¶
Constants ¶
View Source
const HintCookieName = "oidc_hint"
HintCookieName is the name, or with a chunk suffix the prefix, of the cookies that carry a session's OIDC id token.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheIDTokenStore ¶
type CacheIDTokenStore struct {
// contains filtered or unexported fields
}
func (*CacheIDTokenStore) Set ¶
func (c *CacheIDTokenStore) Set(w http.ResponseWriter, r *http.Request, rawIDToken string) error
type CookieIDTokenStore ¶
func (*CookieIDTokenStore) Set ¶
func (c *CookieIDTokenStore) Set(w http.ResponseWriter, r *http.Request, rawIDToken string) error
type IDTokenStore ¶
type IDTokenStore interface {
Set(w http.ResponseWriter, r *http.Request, rawIDToken string) error
Get(r *http.Request) (string, error)
}
func NewCacheIDTokenStore ¶
func NewCacheIDTokenStore(cacheManager cache.CacheManager, ttl time.Duration) IDTokenStore
func NewCookieIDTokenStore ¶
func NewCookieIDTokenStore(blockKey string, ttl time.Duration) IDTokenStore
Click to show internal directories.
Click to hide internal directories.