Struct telescope::web::services::auth::rpi_cas::RpiCas [−][src]
pub struct RpiCas;
Expand description
Zero-Sized struct representing the RPI CAS identity provider
Trait Implementations
The lowercase, one word name of the service. This is used in generating redirect paths and registering the service with actix. It must be unique. Read more
The type of user account represented by this authentication service.
type LoginResponse = HttpResponse
type LoginResponse = HttpResponse
The type used to respond to login requests.
type RegistrationResponse = HttpResponse
type RegistrationResponse = HttpResponse
The type used to respond to registration requests.
type LinkResponse = Result<HttpResponse, TelescopeError>
type LinkResponse = Result<HttpResponse, TelescopeError>
The type used to respond to account linking requests.
type LoginFut = Ready<Self::LoginResponse>
type LoginFut = Ready<Self::LoginResponse>
The type of future returned by the login handler.
type RegistrationFut = Ready<Self::RegistrationResponse>
type RegistrationFut = Ready<Self::RegistrationResponse>
The type of the future returned by the registration handler.
type LinkFut = LocalBoxFuture<'static, Self::LinkResponse>
type LinkFut = LocalBoxFuture<'static, Self::LinkResponse>
The type of the future returned by the account linking handler.
type LoginAuthenticatedFut = LocalBoxFuture<'static, Result<HttpResponse, TelescopeError>>
type LoginAuthenticatedFut = LocalBoxFuture<'static, Result<HttpResponse, TelescopeError>>
The type of future returned by the login authenticated response handler.
type RegistrationAuthenticatedFut = LocalBoxFuture<'static, Result<HttpResponse, TelescopeError>>
type RegistrationAuthenticatedFut = LocalBoxFuture<'static, Result<HttpResponse, TelescopeError>>
The type of future returned by the registration authenticated response handler.
type LinkAuthenticatedFut = LocalBoxFuture<'static, Result<HttpResponse, TelescopeError>>
type LinkAuthenticatedFut = LocalBoxFuture<'static, Result<HttpResponse, TelescopeError>>
The type of future returned by the registration authenticated response handler.
Actix-web handler for the route that redirects to authentication for login. Guarded by this trait to GET requests. Read more
Actix-web handler for the route that redirects to authentication for account creation (user registration). Guarded by this trait to GET requests. Read more
Actix-web handler for the route that redirects to the authentication provider to link an account. Read more
Actix-web handler for authentication callback to login. Guarded by this trait to GET requests. Read more
Actix-web handler for authentication callback to account creation. Guarded by this trait to GET requests. Read more
fn linking_authenticated_handler(
req: HttpRequest,
ident: Identity
) -> Self::LinkAuthenticatedFut
fn linking_authenticated_handler(
req: HttpRequest,
ident: Identity
) -> Self::LinkAuthenticatedFut
Actix-web handler
Get the login path of this service. This is the route in actix that will redirect to the authorization page using the handler function also defined in this trait. Read more
Get the registration path of this service. This is the route in actix that
will redirect to the authorization page using the handler also defined by
this trait. This is similar to Self::login_path
but is for account
registration rather than sign in. Read more
The path to link this identity service. This is similar to the other two, but is intended to be used to link an existing account. Read more
The path to unlink this service from the user’s account.
The path for the identity provider to redirect back to after authenticating a user for login. This path is also registered under actix with the authentication callback handler defined by this trait. Read more
The path for the identity provider to redirect back to after authenticating a user for account creation. This path is also registered under actix with the authentication callback handler defined by this trait. Read more
The path to redirect back to after account linking success. This is similar to the login and registration authenticated redirect paths. Read more
Register the necessary actix services to support this identity provider. Read more
fn unlink_handler(
id: Identity,
cookie: AuthenticationCookie
) -> LocalBoxFuture<'static, Result<HttpResponse, TelescopeError>>
fn unlink_handler(
id: Identity,
cookie: AuthenticationCookie
) -> LocalBoxFuture<'static, Result<HttpResponse, TelescopeError>>
Actix-web handler for the route that unlinks an identity service.
Auto Trait Implementations
impl RefUnwindSafe for RpiCas
impl UnwindSafe for RpiCas
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more