Module session

Source
Expand description

types for Auth / session management

Re-exports§

pub use NewSessionResponse as CreateSessionSuccess;

Structs§

CreateSessionOAuthPath
CreateSessionPath
DeleteSessionPath
GetOAuthPath
GetOAuthUrlResponse
Response for what URL to use for OAuth callback.
ImpersonatePath
NewSessionResponse
Response for successfully creating a session.
OAuthUserProfile
User’s profile info fetched from the OAuth service. Returned as part of the identity claims to be used as defaults for populating a PutProfile request.
SessionTokenQuery
Optional query used as the first option for authentication with the API

Enums§

CreateSessionOAuthRequest
Request for Creating a Session / signing in via oauth.
CreateSessionResponse
Response for creating a session.
GetOAuthUrlServiceKind
Which service to use for OAuth Url generation.
OAuthProvider
OAuth provider for emails
OAuthUrlKind
Which URL to use for OAuth callback.

Constants§

AUTH_COOKIE_NAME
The name to use for auth cookies.
AUTH_QUERY_NAME
The query key for
CSRF_HEADER_NAME
The name of the CSRF header.