Last post Aug 18, 2015 05:48 AM by stqst
Aug 14, 2015 04:41 AM|stqst|LINK
Basically this is how it is working: I issue a GET request to an address that redirects to a Google login page. Once logged in, it redirects to an azure page, which gives an access token. This is put in the header of a new request to azure and the response
is data linked to the Google account in JSON format.
This Stack Overflow question has an answer which might explain this better: http://stackoverflow.com/questions/21065648/asp-net-web-api-2-how-to-login-with-external-authentication-services
This is easy when it is just in a browser. So far I have been using a WebView on Android but apparently there are security concerns with this approach, and on IOS it does not even work because Google appears to block you from entering your password from
How can I do the process on Android without using a WebView?
Aug 14, 2015 08:56 AM|BrockAllen|LINK
For a mobile app, it's almost the same except the token is passed back typically via the hashfragment. Look into the "implicit flow" docs on google.
Aug 17, 2015 09:27 AM|stqst|LINK
I didn't find these docs but I did find this:
The application will then need to show the correct login page and consent screen of the selected provider. Here’s an example for the Google login on iOS:
This means using a WebView as far as I can see. I've already done it using a WebView. My question is how to do it without?
Aug 18, 2015 05:48 AM|stqst|LINK
In fact the WebView doesn't even work on IOS. The password field doesn't allow you to enter the password.