Documentation ¶
Index ¶
Constants ¶
View Source
const ( SessionStateNew = SessionState("NEW") SessionStateRemoteAttached = SessionState("REMOTE_ATTACHED") SessionStateIdentified = SessionState("IDENTIFIED") SessionStateDead = SessionState("EXCHANGED") )
View Source
const ( // The default token expiration time. // This is exported, so it can be used to set the expiration // time in refresh token flow. DefaultSessionValidityWindow = 12 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { ConnectorID string ID string State SessionState CreatedAt time.Time ExpiresAt time.Time ClientID string ClientState string RedirectURL url.URL Identity oidc.Identity UserID string // Regsiter indicates that this session is a registration flow. Register bool // Nonce is optionally provided in the initial authorization request, and // propogated in such cases to the generated claims. Nonce string // Scope is the 'scope' field in the authentication request. Example scopes // are 'openid', 'email', 'offline', etc. Scope scope.Scopes // Groups the user belongs to. Groups []string }
type SessionKey ¶
type SessionKeyRepo ¶
type SessionRepo ¶
type SessionState ¶
type SessionState string
Click to show internal directories.
Click to hide internal directories.