Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google connect issue #3

Open
alamboley opened this issue May 18, 2017 · 1 comment
Open

Google connect issue #3

alamboley opened this issue May 18, 2017 · 1 comment

Comments

@alamboley
Copy link

Hello,

I've a redirect_uri using an https. How I'm supposed to change serverSocket.bind(9005, "::");?

At the moment I can log with my account but I got no trace. Also I saw it opens in the browser, Apple won't refuse my app !?

Thanks for your great contributions to the AS3 community :)

@agentphantom
Copy link
Member

Hi,

I'm not sure if Apple will reject the app since I haven't deployed an iOS app with this particular Sign-In method. But according to Google it should be fine, here's a link with more details:

https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html

As a side note I also studied their official SDK for other programming language (Python) and behaves just the same by opening the default web browser and instantiating a Server Socket.

I'm aware that this method works fine on Windows, macOS and Android where a normal Socket is enough.

I tried to make it work with a SecureSocket but had no success. Maybe on iOS it needs a different configuration.

With this method you don't need to specify a regular redirect URI. By specifying something like this: http://[::1]:9005 the OAuth backend knows that you want to use the loopback method. Here's a link with more details:

https://developers.google.com/identity/protocols/OAuth2InstalledApp#redirect-uri_loopback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants