Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amplify Exception for: aws.sdk.kotlin.services.cognitoidentityprovider.model.UserLambdaValidationException #2523

Closed
1 task done
Lumentus opened this issue Jul 20, 2023 · 3 comments
Assignees
Labels
auth Related to the Auth category/plugins

Comments

@Lumentus
Copy link

Before opening, please confirm:

Language and Async Model

Kotlin - Coroutines

Amplify Categories

Authentication

Gradle script dependencies

    implementation "com.amplifyframework:core-kotlin:$amplify_version"
    implementation "com.amplifyframework:aws-api:$amplify_version"
    implementation "com.amplifyframework:aws-auth-cognito:$amplify_version"
    implementation "com.amplifyframework:aws-storage-s3:$amplify_version"

Environment information

Does not matter


Please include any relevant guides or documentation you're referencing

No response

Describe the feature request

Currently when a user tries to sign in using cognito and it fails because of a Pre-authentification trigger the signIn Method throws an UnknownException with cause: aws.sdk.kotlin.services.cognitoidentityprovider.model.UserLambdaValidationException. Since the Kotlin SDK is declared as a developer preview currently and this seems to me like a relatively common case that a user of the Amplify SDK might like to treat specifically, there should be a separate Amplify SDK specific exception, so that we do not have to use a Kotlin SDK type.

Initialization steps (if applicable)

No response

Code Snippet

// Put your code below this line.

amplifyconfiguration.json

No response

GraphQL Schema

// Put your schema below this line

Additional information and screenshots

No response

@gpanshu gpanshu added auth Related to the Auth category/plugins p3 labels Jul 20, 2023
@gpanshu
Copy link
Contributor

gpanshu commented Jul 21, 2023

You are right, this is indeed a miss. Once we implement this and it gets released I will notify you here.

@gpanshu
Copy link
Contributor

gpanshu commented Oct 6, 2023

This was fixed and released with Amplify Version 2.12.0. Thank you for your report.

@gpanshu gpanshu closed this as completed Oct 6, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2023

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Related to the Auth category/plugins
Projects
None yet
Development

No branches or pull requests

3 participants