pub struct Authentication { /* private fields */ }Expand description
Authentication models the shared Gestalt authentication protocol.
Client for the gestalt.provider.v1.Authentication service.
Implementations§
Source§impl Authentication
impl Authentication
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Sets a deadline applied to every unary call; calls that run past it fail with DEADLINE_EXCEEDED. Streaming calls are unaffected.
Sourcepub async fn begin_login(
&mut self,
callback_url: String,
host_state: String,
scopes: Vec<String>,
) -> Result<BeginLoginResponse, GestaltError>
pub async fn begin_login( &mut self, callback_url: String, host_state: String, scopes: Vec<String>, ) -> Result<BeginLoginResponse, GestaltError>
Calls gestalt.provider.v1.Authentication.BeginLogin.
Sourcepub async fn begin_login_raw(
&mut self,
request: BeginLoginRequest,
) -> Result<BeginLoginResponse, GestaltError>
pub async fn begin_login_raw( &mut self, request: BeginLoginRequest, ) -> Result<BeginLoginResponse, GestaltError>
Calls gestalt.provider.v1.Authentication.BeginLogin with the full request and response messages.
Sourcepub async fn complete_login(
&mut self,
provider_state: Vec<u8>,
callback_url: String,
query: BTreeMap<String, String>,
) -> Result<AuthenticatedUser, GestaltError>
pub async fn complete_login( &mut self, provider_state: Vec<u8>, callback_url: String, query: BTreeMap<String, String>, ) -> Result<AuthenticatedUser, GestaltError>
Calls gestalt.provider.v1.Authentication.CompleteLogin.
Sourcepub async fn complete_login_raw(
&mut self,
request: CompleteLoginRequest,
) -> Result<AuthenticatedUser, GestaltError>
pub async fn complete_login_raw( &mut self, request: CompleteLoginRequest, ) -> Result<AuthenticatedUser, GestaltError>
Calls gestalt.provider.v1.Authentication.CompleteLogin with the full request and response messages.
Sourcepub async fn validate_external_token(
&mut self,
token: String,
) -> Result<AuthenticatedUser, GestaltError>
pub async fn validate_external_token( &mut self, token: String, ) -> Result<AuthenticatedUser, GestaltError>
Calls gestalt.provider.v1.Authentication.ValidateExternalToken.
Sourcepub async fn validate_external_token_raw(
&mut self,
request: ValidateExternalTokenRequest,
) -> Result<AuthenticatedUser, GestaltError>
pub async fn validate_external_token_raw( &mut self, request: ValidateExternalTokenRequest, ) -> Result<AuthenticatedUser, GestaltError>
Calls gestalt.provider.v1.Authentication.ValidateExternalToken with the full request and response messages.
Sourcepub async fn get_session_settings(
&mut self,
) -> Result<AuthSessionSettings, GestaltError>
pub async fn get_session_settings( &mut self, ) -> Result<AuthSessionSettings, GestaltError>
Calls gestalt.provider.v1.Authentication.GetSessionSettings.
Auto Trait Implementations§
impl !Freeze for Authentication
impl !RefUnwindSafe for Authentication
impl !UnwindSafe for Authentication
impl Send for Authentication
impl Sync for Authentication
impl Unpin for Authentication
impl UnsafeUnpin for Authentication
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
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request