Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
373 views
in Technique[技术] by (71.8m points)

amazon web services - Unity Cross Platform Third Party Login with AWS Cognito Hosted UI

I'm trying to build a login scene for my app. Using AWS Cognito user pools I have managed to build a generic sample of code which handles the code exchange for login through Google and Facebook through a URL provided from the hosted UI. For Example:

https://appname.auth.eu-central-1.amazoncognito.com/oauth2/authorize?response_type=CODE&scope=openid%20email&redirect_uri=...&...identity_provider=Google/Facebook...

All that is left to implement is how unity will prompt the user with this URL. I want some kind of dialog box to popup and not call Application.OpenURL which simply opens the browser. This is fairly common around android/IOS apps. I have tried looking into some embedded browser solutions for that but it seems overwhelmingly complicated.

My question is what is the simplest and lightest way to achieve the login dialog box, will I have to use embedded browsers like this open source repo: https://github.com/gree/unity-webview. Am I missing something trying to achieve my goal?

I'm sorry that there are no code samples to show, since I still don't know what plugin/UI component to use.

question from:https://stackoverflow.com/questions/65540980/unity-cross-platform-third-party-login-with-aws-cognito-hosted-ui

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...