pub struct Identity { /* private fields */ }Expand description
Identity models the shared Gestalt authentication protocol.
Client for the gestalt.provider.v1.Identity service.
Implementations§
Source§impl Identity
impl Identity
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 connect() -> Result<Self, GestaltError>
pub async fn connect() -> Result<Self, GestaltError>
Connects to the identity host service described by the environment.
Sourcepub async fn connect_named(name: &str) -> Result<Self, GestaltError>
pub async fn connect_named(name: &str) -> Result<Self, GestaltError>
Connects to the named identity host-service binding.
Calls gestalt.provider.v1.Identity.Authorize.
Calls gestalt.provider.v1.Identity.Authorize with the full request and response messages.
Sourcepub async fn token(
&mut self,
grant_type: String,
code: String,
redirect_uri: String,
client_id: String,
state: String,
scope: String,
subject_token: String,
subject_token_type: String,
options: IdentityTokenOptions,
) -> Result<TokenResponse, GestaltError>
pub async fn token( &mut self, grant_type: String, code: String, redirect_uri: String, client_id: String, state: String, scope: String, subject_token: String, subject_token_type: String, options: IdentityTokenOptions, ) -> Result<TokenResponse, GestaltError>
Calls gestalt.provider.v1.Identity.Token.
Sourcepub async fn token_raw(
&mut self,
request: TokenRequest,
) -> Result<TokenResponse, GestaltError>
pub async fn token_raw( &mut self, request: TokenRequest, ) -> Result<TokenResponse, GestaltError>
Calls gestalt.provider.v1.Identity.Token with the full request and response messages.
Sourcepub async fn introspect(
&mut self,
token: String,
token_type_hint: String,
) -> Result<IntrospectResponse, GestaltError>
pub async fn introspect( &mut self, token: String, token_type_hint: String, ) -> Result<IntrospectResponse, GestaltError>
Calls gestalt.provider.v1.Identity.Introspect.
Sourcepub async fn introspect_raw(
&mut self,
request: IntrospectRequest,
) -> Result<IntrospectResponse, GestaltError>
pub async fn introspect_raw( &mut self, request: IntrospectRequest, ) -> Result<IntrospectResponse, GestaltError>
Calls gestalt.provider.v1.Identity.Introspect with the full request and response messages.
Sourcepub async fn user_info(
&mut self,
request: UserInfoRequest,
) -> Result<UserInfoResponse, GestaltError>
pub async fn user_info( &mut self, request: UserInfoRequest, ) -> Result<UserInfoResponse, GestaltError>
Calls gestalt.provider.v1.Identity.UserInfo.
Sourcepub async fn list_grants(
&mut self,
request: ListGrantsRequest,
) -> Result<ListGrantsResponse, GestaltError>
pub async fn list_grants( &mut self, request: ListGrantsRequest, ) -> Result<ListGrantsResponse, GestaltError>
Calls gestalt.provider.v1.Identity.ListGrants.
Sourcepub async fn get_grant(
&mut self,
grant_id: String,
) -> Result<GetGrantResponse, GestaltError>
pub async fn get_grant( &mut self, grant_id: String, ) -> Result<GetGrantResponse, GestaltError>
Calls gestalt.provider.v1.Identity.GetGrant.
Sourcepub async fn get_grant_raw(
&mut self,
request: GetGrantRequest,
) -> Result<GetGrantResponse, GestaltError>
pub async fn get_grant_raw( &mut self, request: GetGrantRequest, ) -> Result<GetGrantResponse, GestaltError>
Calls gestalt.provider.v1.Identity.GetGrant with the full request and response messages.
Sourcepub async fn revoke_grant(
&mut self,
grant_id: String,
) -> Result<RevokeGrantResponse, GestaltError>
pub async fn revoke_grant( &mut self, grant_id: String, ) -> Result<RevokeGrantResponse, GestaltError>
Calls gestalt.provider.v1.Identity.RevokeGrant.
Sourcepub async fn revoke_grant_raw(
&mut self,
request: RevokeGrantRequest,
) -> Result<RevokeGrantResponse, GestaltError>
pub async fn revoke_grant_raw( &mut self, request: RevokeGrantRequest, ) -> Result<RevokeGrantResponse, GestaltError>
Calls gestalt.provider.v1.Identity.RevokeGrant with the full request and response messages.
Auto Trait Implementations§
impl !Freeze for Identity
impl !RefUnwindSafe for Identity
impl !UnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
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