Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

Web Api that requires a Google login - how to do this on Android / IOS?

$
0
0

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 a WebView.

How can I do the process on Android without using a WebView?


Viewing all articles
Browse latest Browse all 4850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>