pub struct CognitoClient<'a> { /* private fields */ }Implementations§
Source§impl CognitoClient<'_>
impl CognitoClient<'_>
Sourcepub async fn get_user_codes(
&self,
pool_id: &str,
username: &str,
) -> Result<UserConfirmationCodes, Error>
pub async fn get_user_codes( &self, pool_id: &str, username: &str, ) -> Result<UserConfirmationCodes, Error>
Get confirmation codes for a specific user.
Sourcepub async fn get_confirmation_codes(
&self,
) -> Result<ConfirmationCodesResponse, Error>
pub async fn get_confirmation_codes( &self, ) -> Result<ConfirmationCodesResponse, Error>
List all confirmation codes across all pools.
Sourcepub async fn confirm_user(
&self,
req: &ConfirmUserRequest,
) -> Result<ConfirmUserResponse, Error>
pub async fn confirm_user( &self, req: &ConfirmUserRequest, ) -> Result<ConfirmUserResponse, Error>
Confirm a user (bypass email/phone verification).
Sourcepub async fn get_tokens(&self) -> Result<TokensResponse, Error>
pub async fn get_tokens(&self) -> Result<TokensResponse, Error>
List all active tokens.
Sourcepub async fn expire_tokens(
&self,
req: &ExpireTokensRequest,
) -> Result<ExpireTokensResponse, Error>
pub async fn expire_tokens( &self, req: &ExpireTokensRequest, ) -> Result<ExpireTokensResponse, Error>
Expire tokens (optionally filtered by pool/user).
Sourcepub async fn get_auth_events(&self) -> Result<AuthEventsResponse, Error>
pub async fn get_auth_events(&self) -> Result<AuthEventsResponse, Error>
List auth events.
Sourcepub async fn get_pre_token_gen_invocations(
&self,
) -> Result<PreTokenGenInvocationsResponse, Error>
pub async fn get_pre_token_gen_invocations( &self, ) -> Result<PreTokenGenInvocationsResponse, Error>
List PreTokenGeneration Lambda trigger invocations recorded
during InitiateAuth. Each entry includes the full request /
response payloads plus pre-parsed claims_added,
claims_overridden, and group_overrides so tests can assert
the claim mutation flow without inspecting the issued JWT.
Mint an OAuth2 authorization_code for the given (client_id, redirect_uri, scopes, PKCE) binding. Lets tests drive the
authorization_code grant before the hosted-UI lands.
Sourcepub async fn set_compromised_passwords(
&self,
req: &CognitoCompromisedPasswordsRequest,
) -> Result<CompromisedPasswordsResponse, Error>
pub async fn set_compromised_passwords( &self, req: &CognitoCompromisedPasswordsRequest, ) -> Result<CompromisedPasswordsResponse, Error>
Register one or more plaintext passwords with the compromised-
credentials set so subsequent InitiateAuth /
AdminInitiateAuth calls trip the BLOCK action when the pool’s
CompromisedCredentialsRiskConfiguration is enabled.
Sourcepub async fn get_webauthn_credentials(
&self,
) -> Result<WebAuthnCredentialsResponse, Error>
pub async fn get_webauthn_credentials( &self, ) -> Result<WebAuthnCredentialsResponse, Error>
List every registered WebAuthn credential across pools.