Skip to content

signInWithSocialWebUI not working on 2.1.0 but working on 1.37.5 #2234

@JurajBegovac

Description

@JurajBegovac

Before opening, please confirm:

Language and Async Model

RxJava

Amplify Categories

Authentication

Gradle script dependencies

I use .toml file for dependencies

[versions]
amplify = "2.1.0"

[libraries]
amplify-cognito = { module = "com.amplifyframework:aws-auth-cognito", version.ref = "amplify" }
amplify-core = { module = "com.amplifyframework:core", version.ref = "amplify" }
amplify-rxbindings = { module = "com.amplifyframework:rxbindings", version.ref = "amplify" }

Environment information

------------------------------------------------------------
Gradle 7.6
------------------------------------------------------------

Build time:   2022-11-25 13:35:10 UTC
Revision:     daece9dbc5b79370cc8e4fd6fe4b2cd400e150a8

Kotlin:       1.7.10
Groovy:       3.0.13
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          11.0.16.1 (Homebrew 11.0.16.1+0)
OS:           Mac OS X 12.6.1 aarch64


Please include any relevant guides or documentation you're referencing

No response

Describe the bug

When I call (e.g.):

signInWithSocialWebUI(AuthProvider.google(), activity)

It works on 1.37.5 but not on 2.1.0.

On 2.1.0 it let me choose google account and then when it was redirected back I get this:

                                          ServiceException{message=invalid_client, cause=ServiceException{message=invalid_client, cause=null, recoverySuggestion=Sorry, we don't have a suggested fix for this error yet.}, recoverySuggestion=Sorry, we don't have a suggested fix for this error yet.}
                                          	at com.amplifyframework.auth.cognito.helpers.HostedUIHttpHelper.parseTokenResponse(HostedUIHttpHelper.kt:102)
                                          	at com.amplifyframework.auth.cognito.helpers.HostedUIHttpHelper.fetchTokens(HostedUIHttpHelper.kt:69)
                                          	at com.amplifyframework.auth.cognito.HostedUIClient.fetchToken(HostedUIClient.kt:119)
                                          	at com.amplifyframework.auth.cognito.actions.HostedUICognitoActions$fetchHostedUISignInToken$$inlined$invoke$1.execute(Action.kt:73)
                                          	at com.amplifyframework.statemachine.ConcurrentEffectExecutor$execute$1$1.invokeSuspend(ConcurrentEffectExecutor.kt:26)
                                          	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                          	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                                          	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
                                          	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
                                          	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
                                          	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
                                          Caused by: ServiceException{message=invalid_client, cause=null, recoverySuggestion=Sorry, we don't have a suggested fix for this error yet.}§

Reproduction steps (if applicable)

No response

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line


amplifyconfiguration.json

Screenshot 2023-01-18 at 23 01 18

GraphQL Schema

// Put your schema below this line

Additional information and screenshots

No response

Metadata

Metadata

Assignees

Labels

authRelated to the Auth category/pluginsbugSomething isn't workingclosing soonThis issue will be closed in 7 days unless further comments are made.pending-community-responseIssue is pending response from the issue requestor

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions