Struct matrix_sdk::matrix_auth::SsoLoginBuilder
source · pub struct SsoLoginBuilder<F> { /* private fields */ }
sso-login
only.Expand description
Builder type used to configure optional settings for logging in via SSO.
Created with MatrixAuth::login_sso
. Finalized with
.send()
.
Implementations§
source§impl<F, Fut> SsoLoginBuilder<F>
impl<F, Fut> SsoLoginBuilder<F>
sourcepub fn device_id(self, value: &str) -> Self
pub fn device_id(self, value: &str) -> Self
Set the device ID.
The device ID is a unique ID that will be associated with this session. If not set, the homeserver will create one. Can be an existing device ID from a previous login call. Note that this should be done only if the client also holds the corresponding encryption keys.
sourcepub fn initial_device_display_name(self, value: &str) -> Self
pub fn initial_device_display_name(self, value: &str) -> Self
Set the initial device display name.
The device display name is the public name that will be associated with the device ID. Only necessary the first time you login with this device ID. It can be changed later.
sourcepub fn server_url(self, value: &str) -> Self
pub fn server_url(self, value: &str) -> Self
Set the local URL the server is going to try to bind to.
Usually something like http://localhost:3030
. If not set, the server
will try to open a random port on 127.0.0.1
.
sourcepub fn server_response(self, value: &str) -> Self
pub fn server_response(self, value: &str) -> Self
Set the text to be shown at the end of the login process.
This configures the text that will be shown on the webpage at the end of the login process. This can be an HTML page. If not set, a default text will be displayed.
sourcepub fn identity_provider_id(self, value: &str) -> Self
pub fn identity_provider_id(self, value: &str) -> Self
Set the ID of the identity provider to log in with.
sourcepub fn request_refresh_token(self) -> Self
pub fn request_refresh_token(self) -> Self
Advertise support for refreshing access tokens.
By default, the Client
won’t handle refreshing access tokens, so
Client::refresh_access_token()
or
MatrixAuth::refresh_access_token()
needs to be called
manually.
This behavior can be changed by calling
handle_refresh_tokens()
when building the Client
.
Note that refreshing access tokens might not be supported or might be enforced by the homeserver regardless of this setting.
Trait Implementations§
source§impl<F, Fut> IntoFuture for SsoLoginBuilder<F>
impl<F, Fut> IntoFuture for SsoLoginBuilder<F>
§type IntoFuture = Pin<Box<dyn Future<Output = <SsoLoginBuilder<F> as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <SsoLoginBuilder<F> as IntoFuture>::Output> + Send>>
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Auto Trait Implementations§
impl<F> Freeze for SsoLoginBuilder<F>where
F: Freeze,
impl<F> !RefUnwindSafe for SsoLoginBuilder<F>
impl<F> Send for SsoLoginBuilder<F>where
F: Send,
impl<F> Sync for SsoLoginBuilder<F>where
F: Sync,
impl<F> Unpin for SsoLoginBuilder<F>where
F: Unpin,
impl<F> !UnwindSafe for SsoLoginBuilder<F>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more