2019-05-06 13:33:33 +00:00
|
|
|
package options
|
|
|
|
|
2019-05-15 15:56:05 +00:00
|
|
|
import (
|
|
|
|
"github.com/pusher/oauth2_proxy/cookie"
|
|
|
|
)
|
|
|
|
|
2019-05-06 13:33:33 +00:00
|
|
|
// SessionOptions contains configuration options for the SessionStore providers.
|
|
|
|
type SessionOptions struct {
|
2019-05-15 15:56:05 +00:00
|
|
|
Type string `flag:"session-store-type" cfg:"session_store_type" env:"OAUTH2_PROXY_SESSION_STORE_TYPE"`
|
|
|
|
Cipher *cookie.Cipher
|
2019-05-06 13:33:33 +00:00
|
|
|
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-15 15:56:05 +00:00
|
|
|
type CookieStoreOptions struct{}
|