#Social Authentication not working on Ionic

43 messages · Page 1 of 1 (latest)

faint gyro
#

I'm currently configuring authentication for my Android mobile app. However, when I try to proceed with Google sign-in, it seems to be using the callback URL of the App Web Client instead of the native app's URL. From my understanding, the app client pool should be dedicated to the mobile app. Despite setting up the deep link and verifying its functionality, the issue remains: AWS Cognito appears to be returning the callback URL of the App Web Client rather than the desired URL scheme of the app cleint .

Testing environment: Android Studio Device Emulator
Framework: Angular & Ionic

Deep link set up: https://capacitorjs.com/docs/apis/app - DONE & WORKING

pastel juniper
#

Let me think

#

I had an issue in AWS, too

#

Let me know the url of source.

#

I will try to help you

faint gyro
#

@pastel juniper :I'm utilizing deeplinks to manage URL callbacks from the Cognito flow for federated login and sign-up. Initially, I assumed that using the app_client pool was necessary; however, I discovered that this pool is intended for use with the SDK. In my situation, I'm relying on the pre-built authentication library provided by AWS Amplify, which directs users to a web browser. Consequently, the appropriate user pool to employ is app_clientWeb.

At present, I've managed to redirect users back to my application, but the authentication process is encountering issues. Specifically, it's failing to log in any users.

#

I'm not getting any user signed in upon getting back to my application

pastel juniper
#

No offense but, is it urgent?

#

Can you give me 2 days?

#

I am very busy now

faint gyro
#

I'll share my discoveries here, in the hopes that they might be beneficial to anyone facing a similar situation.

#

Cognito's authentication mechanism doesn't capture the code or token upon users' return from a web browser to the application. Therefore, developers frequently need to devise a programmatic solution to address this scenario. They retrieve the URL data from the web browser's return to the application and subsequently process the information before incorporating it into the authentication library.

pastel juniper
#

Yeah, I see. Actually, I have a job call tomorrow, so I should be ready for that. So I have no time for now.

#

Please understand me

faint gyro
#

anyways

#

Good luck

pastel juniper
#

Thank you very much

pastel juniper
#

Hello

#

Are you busy now?

faint gyro
#

Social Authentication not working on Ionic

pastel juniper
#

Hey bunny

#

I passed the test

pastel juniper
#

Bunny, Why no answer?

pastel juniper
#

Bunny

#

Why no answer?

faint gyro
#

@pastel juniper I apologize I was busy last week. I've been looking for a solution for this for now. I've found some plugins that might help me authenticate on Webview.

#
#

it seems I might need to resort to using third-party libraries, which I've been trying to avoid.

pastel juniper
#

Bunny, please accept my invite

#

Let's discuss there

#

Ok?

pastel juniper
#

Bunny? Are you busy now?

faint gyro
#

Yes, I've got a bunch of other projects going on right now. Sorry

#

I think it'd be super helpful to tackle this issue right here .

#

That way, our convo could actually lend a hand to anyone else who gets stuck on the same thing.

#

Thank you for jumpin in and responing here. much appreciated