1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-06-04 23:37:29 +02:00

18 lines
658 B
Go
Raw Normal View History

package options
// SessionOptions contains configuration options for the SessionStore providers.
type SessionOptions struct {
2019-05-07 14:27:09 +01:00
Type string `flag:"session-store-type" cfg:"session_store_type" env:"OAUTH2_PROXY_SESSION_STORE_TYPE"`
EnableCipher bool // Allow the user to choose encryption or not
CookieStoreOptions
}
// CookieSessionStoreType is used to indicate the CookieSessionStore should be
// used for storing sessions.
var CookieSessionStoreType = "cookie"
// CookieStoreOptions contains configuration options for the CookieSessionStore.
2019-05-07 14:27:09 +01:00
type CookieStoreOptions struct {
EnableCipher bool // Allow the user to choose encryption or not
}