Android Development

Of course this is not a comprehensive development page. I'm just starting out, so here are some links that got me started.

Google Authentication project

In this section, I'm setting out to document a fully functional Android.Auth Google Authentication project. It works! it is not ready for prime time yet as there are several things that I need to do. Including modularize it and make it work for both iOS, Windows and Android. This version focuses on Android.

There are several pieces to setting this up.

  1. Setup OAuth 2.0 authentication in the console.cloud.google.com see this Pay particular attention to the RedirectUrl that they require you to use, it is different than in the next set of documentation.

  2. Next, I looked instructions here and code here(Directions current as of 6/8/2017, code on Github is, of course, newer). We are using Native=True. That just means that when it pops up the authentication for the user, it will use the Chrome browser and not your app and a web view.

I had my share of problems!

Problem 1: Error 400 unsupported_response_type

Solution: When creating the !OAuth2Authenticator, use the second constructor that has the token_uri in it.

{{{!#hightlight c# GoogleAuthData data = Configuration.Configuration.GetGoogleAuthData();

}}}