How to use Federation from a User Pool (not from an Identity Pool)!

0 votes

I'm trying to use Federation from a User Pool. Note, I am not talking about Federated Identity Pool a different concept.

Is there a SignIn API for federated users or is just a hosted UI

Does the app "have to" open a browser on a Sign In URL that looks like https://XXXXXX.au=th.XXXXX.amazoncognito.com/login?response_type=code&client_id=XXXXXXXXX&redirect_uri=XXXXXXX? Can the end-user can stay inside the app, similar to how Google SignIn API on Android works (it pops up a small Google sign in UI, user clicks on their name, you're immediately back inside the app with a token.

How do I launch a browser on that Sign In URL?

How can my app be called back when the user has finished signing in?

Specifically how does my mobile app receive the token from the browser?

Aug 30, 2018 in AWS by bug_seeker
• 15,350 points
75 views

1 answer to this question.

0 votes

Is there a SignIn API for federated users or is just a hosted UI?

As far as I can tell you have to use the hosted UI when you federate a user pool to social IdPs.

How do I launch a browser on that Sign In URL?

This depends on the language and platform obviously, on Android with Xamarin you can use Xamarin.Auth.Presenters.OAuthLoginPresenter.Login() to launch a native browser Chrome at a URL specified by the OAuth2Authenticator you pass in. That OAuth2Authenticator does more than just craft the URL it gives Chrome, its stateful so when you get an answer back in the form of a code or token, you can then call methods on that object to proceed.

How can my app be called back when the user has finished signing in?

Specifically how can the browser redirecting a URL actually redirect you back inside the app. That's done via something called, Deep Links & App Links, here's that concept explained on Android.

answered Aug 30, 2018 by Priyaj
• 56,920 points

Related Questions In AWS

0 votes
1 answer

Want to use an AWS Cognito User Pool without putting a password(for an easier approach)

Currently, AWS Cognito is not supporting passwordless ...READ MORE

answered May 4, 2018 in AWS by Cloud gunner
• 4,280 points
1,549 views
0 votes
1 answer

How do I write an S3 Object to a file?

While IOUtils.copy() and IOUtils.copyLarge() are great, I would prefer the old ...READ MORE

answered Jul 13, 2018 in AWS by Hammer
• 360 points
224 views
0 votes
1 answer
0 votes
1 answer

how to access AWS S3 from Lambda in VPC

With boto3, the S3 urls are virtual by default, ...READ MORE

answered Sep 28, 2018 in AWS by Priyaj
• 56,920 points
2,111 views
0 votes
1 answer
0 votes
1 answer
+2 votes
2 answers

How do we move a domain from Hostgator to AWS Route 53?

I found this  Before transferring a domain, make ...READ MORE

answered Aug 3, 2018 in AWS by Priyaj
• 56,920 points
1,080 views
0 votes
1 answer