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

让人想犯罪 __ 提交于 2019-11-29 16:26:19

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!