amplify_auth_cognito_dart library
Amplify Auth Cognito for Dart
Classes
- AmplifyAuthCognitoDart
- The AWS Cognito implementation of the Amplify Auth category.
- ASFContextData
- Context parameters required for advanced security features (ASF).
- ASFContextDataBuilder
- ASFContextDataProvider
- Provides user context data as required for Cognito's advanced security features (ASF) functionality.
- ASFDeviceInfoCollector
- Retrieves context data as required for advanced security features (ASF).
- AuthCodeDeliveryDetails Auth
- Details on where a confirmation code has been delivered.
- AuthDevice Auth
- Common interface for devices tracked by an authentication provider.
- AuthHubEvent Auth
- The base class for hub events of the Auth category.
- AuthNextSignInStep Auth
- AuthNextSignUpStep Auth
- AuthNextStep Auth
- AuthNextUpdateAttributeStep Auth
- This wraps all the details around the next step in the user attribute update process.
- AuthProvider Auth
- AuthSession Auth
- AuthUser Auth
- AuthUserAttribute Auth
- The key and value for a user attribute.
- AuthUserAttributeKey Auth
- A user attribute identifier. {@hideConstantImplementations}
- CognitoAuthSession
- The current Cognito auth session, with AWS credentials and User Pool tokens of the active user.
- CognitoAuthUser
- A Cognito user, including details of how they signed in.
- CognitoCompleteSignOut
-
The result of a call to
Amplify.Auth.signOut
. - CognitoConfirmResetPasswordOptions
- Cognito extension of ConfirmResetPasswordOptions to add the platform-specific fields.
- CognitoConfirmResetPasswordPluginOptions
-
Cognito options for
Amplify.Auth.confirmResetPassword
. - CognitoConfirmSignInOptions
-
Cognito options for
Amplify.Auth.confirmSignIn
. - CognitoConfirmSignInPluginOptions
-
Cognito options for
Amplify.Auth.confirmSignIn
. - CognitoConfirmSignUpOptions
-
Options passed to
Amplify.Auth.confirmSignUp
. - CognitoConfirmSignUpPluginOptions
-
Cognito options for
Amplify.Auth.confirmSignUp
. - CognitoConfirmUserAttributePluginOptions
-
Cognito options for
Amplify.Auth.confirmUserAttribute
. - CognitoDevice
- A device tracked by AWS Cognito.
- CognitoFailedSignOut
- A sign out which did not complete. The user will remain signed in.
- CognitoFetchAuthSessionOptions
-
Cognito options for
Amplify.Auth.fetchAuthSession
. - CognitoFetchAuthSessionPluginOptions
-
Cognito options for
Amplify.Auth.fetchAuthSession
. - CognitoFetchUserAttributesPluginOptions
-
Cognito options for
Amplify.Auth.fetchUserAttributes
. - CognitoGetCurrentUserPluginOptions
-
Cognito options for
Amplify.Auth.getCurrentUser
. - CognitoPartialSignOut
- A partial success during sign out where credentials have been cleared from the device.
- CognitoResendSignUpCodeOptions
- Cognito extension of ResendSignUpCodeOptions to add the platform-specific fields.
- CognitoResendSignUpCodePluginOptions
-
Cognito options for
Amplify.Auth.resendSignUpCode
. - CognitoResendSignUpCodeResult
- The result of resending a sign up code with Cognito.
- CognitoResetPasswordOptions
- Cognito extension of ResetPasswordOptions to add the platform-specific fields.
- CognitoResetPasswordPluginOptions
-
Cognito options for
Amplify.Auth.resetPassword
. - CognitoResetPasswordResult
- The result of performing a password reset.
- CognitoSendUserAttributeVerificationCodeOptions
-
Cognito options for
Amplify.Auth.sendUserAttributeVerificationCode
. - CognitoSendUserAttributeVerificationCodePluginOptions
-
Cognito options for
Amplify.Auth.sendUserAttributeVerificationCode
. - CognitoSignInDetails
- The details of how a user logged in.
- CognitoSignInDetailsApiBased
- Sign in details for Cognito API-based (e.g. SRP or Custom Auth).
- CognitoSignInDetailsHostedUi
- Sign in details for Cognito Hosted UI.
- CognitoSignInMethod
- The method by which the user logged in and retrieved the accompanying CognitoUserPoolTokens.
- CognitoSignInOptions
-
Cognito options for
Amplify.Auth.signIn
. - CognitoSignInPluginOptions
-
Cognito options for
Amplify.Auth.signIn
. - CognitoSignInResult
- The result of performing a sign in with Cognito.
- CognitoSignInWithWebUIOptions
-
Cognito options for
Amplify.Auth.signInWithWebUI
. - CognitoSignInWithWebUIPluginOptions
-
Cognito options for
Amplify.Auth.signIn
. - CognitoSignOutPluginOptions
-
Cognito options for
Amplify.Auth.signOut
. - CognitoSignOutResult
-
The result of a call to
Amplify.Auth.signOut
. - CognitoSignUpOptions
-
Cognito options for
Amplify.Auth.signUp
. - CognitoSignUpPluginOptions
-
Cognito options for
Amplify.Auth.signUp
. - CognitoSignUpResult
- The result of performing a sign up with Cognito.
- CognitoUpdatePasswordPluginOptions
-
Cognito options for
Amplify.Auth.updatePassword
. - CognitoUpdateUserAttributeOptions
-
Cognito options for
Amplify.Auth.updateUserAttribute
. - CognitoUpdateUserAttributePluginOptions
-
Cognito options for
Amplify.Auth.updateUserAttribute
. - CognitoUpdateUserAttributesOptions
- Cognito extension of UpdateUserAttributesOptions to add the platform specific fields.
- CognitoUpdateUserAttributesPluginOptions
-
Cognito options for
Amplify.Auth.updateUserAttributes
. - CognitoUserAttributeKey Auth
-
User attributes available for configuring via
Amplify.Auth.signUp
, or updating viaAmplify.Auth.updateUserAttribute
andAmplify.Auth.updateUserAttributes
. - CognitoUserPoolTokens
- Cognito credentials of the active user.
- CognitoUserPoolTokensBuilder
- CognitoVerifyTotpSetupPluginOptions
-
Cognito options for
Amplify.Auth.verifyTotpSetup
. - ConfirmResetPasswordOptions Auth
- The shared confirm reset password options among all Auth plugins.
- ConfirmSignInOptions Auth
-
Options for
Amplify.Auth.confirmSignIn
. - ConfirmSignUpOptions Auth
-
Options passed to
Amplify.Auth.confirmSignUp
. - ConfirmUserAttributeOptions Auth
-
Options passed to
Amplify.Auth.confirmUserAttribute
- ConfirmUserAttributeResult Auth
- Wraps the result of a confirm user attribute operation.
- FederateToIdentityPoolOptions
- Options to AmplifyAuthCognitoDart.federateToIdentityPool.
- FederateToIdentityPoolRequest
- Encapsulates a request to AmplifyAuthCognitoDart.federateToIdentityPool.
- FederateToIdentityPoolResult
- The result of calling AmplifyAuthCognitoDart.federateToIdentityPool.
- FetchAuthSessionOptions Auth
-
Options for
Amplify.Auth.fetchAuthSession
. - FetchUserAttributesOptions Auth
- The shared fetch user attributes options among all Auth plugins.
- GetCurrentUserOptions Auth
-
Options for
Amplify.Auth.getCurrentUser
. - JsonWebToken
- A JSON Web Token (JWT) is a compact, URL-safe means of representing claims to be transferred between two parties.
- ResendSignUpCodeOptions Auth
- The shared resend sign up code options among all Auth plugins.
- ResendSignUpCodeResult Auth
- ResetPasswordOptions Auth
- The shared reset password options among all Auth plugins.
- ResetPasswordResult Auth
- The result of a password reset request.
- ResetPasswordStep Auth
- The next step required for resetting a user's password.
- SendUserAttributeVerificationCodeOptions Auth
- The shared send user attribute verification code options among all Auth plugins.
- SendUserAttributeVerificationCodeResult Auth
- Wraps the result of a send user verification code operation.
- SignInDetails Auth
- Details about how a user signed in.
- SignInOptions Auth
-
Options for
Amplify.Auth.signIn
. - SignInResult Auth
- SignInWithWebUIOptions Auth
-
Options for
Amplify.Auth.signInWithWebUI
. - SignOutOptions Auth
- The shared sign out options among all Auth plugins.
- SignOutResult Auth
-
The result of a call to
Amplify.Auth.signOut
. - SignUpOptions Auth
-
Options for
Amplify.Auth.signUp
. - SignUpResult Auth
- TotpSetupDetails
- The TOTP secret code and QR code, used to set up an authenticator for TOTP MFA.
- TotpSetupOptions
-
Options for
Amplify.Auth.verifyTotpSetup
. - TotpSetupPluginOptions
-
Plugin-specific options for
Amplify.Auth.setUpTotp
. - UpdatePasswordOptions Auth
- The shared update password options among all Auth plugins.
- UpdatePasswordResult Auth
- The result of an update password request.
- UpdateUserAttributeOptions Auth
- The shared update user attribute options among all Auth plugins.
- UpdateUserAttributeResult Auth
- Wraps the result of an update user attribute operation.
- UpdateUserAttributesOptions Auth
- The shared update user attributes options among all Auth plugins.
- UserMfaPreference
-
The MFA preferences for the user, returned from
Amplify.Auth.fetchMfaPreference
. - VerifyTotpSetupOptions
-
Options for
Amplify.Auth.verifyTotpSetup
. - VerifyTotpSetupPluginOptions
-
Plugin-specific options for
Amplify.Auth.verifyTotpSetup
.
Enums
- AuthHubEventType Auth
- Hub Event types for the Auth category.
- AuthResetPasswordStep Auth
- The current step in the reset password flow.
- AuthSignInStep Auth
- The current step in the sign in flow.
- AuthSignUpStep Auth
- The current step in the sign up flow.
- AuthUpdateAttributeStep Auth
- The current step in the attribute update flow.
- CognitoSignInType
- The type of sign-in initiated by the user.
- DeliveryMedium Auth
- The medium to which an item (e.g., confirmation code) was delivered.
- MfaPreference
- The MFA preference for an MFA type.
Extensions
- AuthDeviceX on AuthDevice
- Helper functions for AuthDevice.
- CognitoAccessToken on JsonWebToken
- Cognito-specific access token claims.
- CognitoIdToken on JsonWebToken
- Standard OIDC and Cognito-specific ID token claims.
- CognitoToken on JsonWebToken
- Cognito-specific claims for access and ID tokens.
Typedefs
-
AuthErrorResult<
T extends Object?> = AWSErrorResult< T, AuthException> - A failed result to an Auth operation.
-
AuthResult<
T extends Object?> = AWSResult< T, AuthException> - The result of an Auth operation.
-
AuthSuccessResult<
T extends Object?> = AWSSuccessResult< T, AuthException> - A successful result to an Auth operation.
- AWSCognitoUserPoolTokens = CognitoUserPoolTokens
- Cognito credentials of the active user.
- CodeExpiredException = ExpiredCodeException
- Exception thrown when a verification code provided to the requested service is expired.
- CognitoResendUserAttributeConfirmationCodeOptions = CognitoSendUserAttributeVerificationCodeOptions
-
Cognito options for
Amplify.Auth.sendUserAttributeVerificationCode
. - CognitoResendUserAttributeConfirmationCodePluginOptions = CognitoSendUserAttributeVerificationCodePluginOptions
-
Cognito options for
Amplify.Auth.sendUserAttributeVerificationCode
. - CognitoSessionOptions = CognitoFetchAuthSessionOptions
-
Cognito options for
Amplify.Auth.fetchAuthSession
. - CognitoSignInStep = AuthSignInStep
- The current step in the sign in flow.
- CognitoSignUpStep = AuthSignUpStep
- The current step in the sign up flow.
- CognitoUpdateUserAttributeStep = AuthUpdateAttributeStep
- The current step in the attribute update flow.
- FailedAttemptsLimitExceededException = TooManyFailedAttemptsException
- Exception thrown when too many failed attempts for a given action has been made, such as sign-in.
- MFAMethodNotFoundException = MfaMethodNotFoundException
- Exception thrown when the requested service cannot find a multi-factor authentication (MFA) method.
- ResendUserAttributeConfirmationCodeOptions = SendUserAttributeVerificationCodeOptions
- The shared send user attribute verification code options among all Auth plugins.
- ResendUserAttributeConfirmationCodeResult = SendUserAttributeVerificationCodeResult
- Wraps the result of a send user verification code operation.
- SoftwareTokenMFANotFoundException = SoftwareTokenMfaNotFoundException
- Exception thrown when the software token time-based one-time password (TOTP) multi-factor authentication (MFA) isn't activated for the user pool.
Exceptions / Errors
- AliasExistsException
- This exception is thrown when a user tries to confirm the account with an email address or phone number that has already been supplied as an alias for a different user profile. This exception indicates that an account with this email address or phone already exists in a user pool that you've configured to use email address or phone number as a sign-in alias.
- AuthException Auth
- The class for Auth category exceptions.
- AuthNotAuthorizedException Auth
- Exception thrown when the current session is not authorized to perform an operation.
- AuthServiceException Auth
- Exception thrown when some error occurs in the underlying service.
- AuthValidationException Auth
- Exception thrown when one of the input fields to an operation is invalid.
- CodeDeliveryFailureException
- This exception is thrown when a verification code fails to deliver successfully.
- CodeMismatchException
- This exception is thrown if the provided code doesn't match what the server was expecting.
- CognitoServiceException
- An core.AuthServiceException thrown by Cognito.
- ConcurrentModificationException
- This exception is thrown if two or more modifications are happening concurrently.
- DeviceNotTrackedException
- Exception thrown when a request is made for a device which is either not currently tracked or previously forgotten.
- EnableSoftwareTokenMfaException
- This exception is thrown when there is a code mismatch and the service fails to configure the software token TOTP multi-factor authentication (MFA).
- ExpiredCodeException
- This exception is thrown if a code has expired.
- ExternalServiceException
- An exception thrown when a dependent service such as Facebook or Twitter is not responding
- ForbiddenException
- This exception is thrown when WAF doesn't allow your request based on a web ACL that's associated with your user pool.
- GlobalSignOutException
- Exception thrown trying to sign out the user globally.
- HostedUiException
- Exception thrown trying to sign out of Hosted UI.
- InternalErrorException
- This exception is thrown when Amazon Cognito encounters an internal error.
- InvalidAccountTypeException
- Exception thrown when the configuration of the signed in account does not support the requested operation.
- InvalidEmailRoleAccessPolicyException
- This exception is thrown when Amazon Cognito isn't allowed to use your email identity. HTTP status code: 400.
- InvalidIdentityPoolConfigurationException
- Thrown if the identity pool has no role associated for the given auth type (auth/unauth) or if the AssumeRole fails.
- InvalidLambdaResponseException
- This exception is thrown when Amazon Cognito encounters an invalid Lambda response.
- InvalidParameterException
- This exception is thrown when the Amazon Cognito service encounters an invalid parameter.
- InvalidPasswordException
- This exception is thrown when Amazon Cognito encounters an invalid password.
- InvalidSmsRoleAccessPolicyException
- This exception is returned when the role provided for SMS configuration doesn't have permission to publish using Amazon SNS.
- InvalidSmsRoleTrustRelationshipException
-
This exception is thrown when the trust relationship is not valid for the role provided for SMS configuration. This can happen if you don't trust
cognito-idp.amazonaws.com
or the external ID provided in the role does not match what is provided in the SMS configuration for the user pool. - InvalidStateException Auth
- Exception thrown when the requested operation is not valid in the current Amplity Auth state.
- InvalidUserPoolConfigurationException
- This exception is thrown when the user pool configuration is not valid.
- LambdaException
- Exception thrown when an error from the AWS Lambda service is encountered.
- LimitExceededException
- This exception is thrown when a user exceeds the limit for a requested Amazon Web Services resource.
- MfaMethodNotFoundException
- This exception is thrown when Amazon Cognito can't find a multi-factor authentication (MFA) method.
- NetworkException
- Exception thrown when the requested operation fails due to a network failure.
- NotAuthorizedServiceException
- This exception is thrown when a user isn't authorized.
- PasswordResetRequiredException
- This exception is thrown when a password reset is required.
- ResourceConflictException
- Thrown when a user tries to use a login which is already linked to another account.
- ResourceNotFoundException
- This exception is thrown when the Amazon Cognito service can't find the requested resource.
- RevokeTokenException
- Exception thrown trying to revoke the user's token.
- SessionExpiredException Auth
- Exception thrown when the current session is expired.
- SignedOutException Auth
- Exception thrown when the requested operation can't be performed due to the user being signed out.
- SoftwareTokenMfaNotFoundException
- This exception is thrown when the software token time-based one-time password (TOTP) multi-factor authentication (MFA) isn't activated for the user pool.
- TooManyFailedAttemptsException
- This exception is thrown when the user has made too many failed attempts for a given action, such as sign-in.
- TooManyRequestsException
- This exception is thrown when the user has made too many requests for a given operation.
- Exception that is thrown when the request isn't authorized. This can happen due to an invalid access token in the request.
- UnexpectedLambdaException
- This exception is thrown when Amazon Cognito encounters an unexpected exception with Lambda.
- UnknownException
- Exception thrown when an unknown error from an underlying SDK or service is encountered.
- UnknownServiceException
- An unknown exception raised by Cognito.
- UnsupportedOperationException
- Exception that is thrown when you attempt to perform an operation that isn't enabled for the user pool client.
- UnsupportedTokenTypeException
- Exception that is thrown when an unsupported token is passed to an operation.
- UserCancelledException Auth
- Exception thrown when a requested operation could not be completed because it was cancelled by the user.
- UserLambdaValidationException
- This exception is thrown when the Amazon Cognito service encounters a user validation exception with the Lambda service.
- UsernameExistsException
- This exception is thrown when Amazon Cognito encounters a user name that already exists in the user pool.
- UserNotConfirmedException
- This exception is thrown when a user isn't confirmed successfully.
- UserNotFoundException
- This exception is thrown when a user isn't found.