A Portable .NET client library for Google Play Services OAuth written in C#.
This is a C# port of https://github.com/simon-weber/gpsoauth
Project has been bumped to v1.0.0 due to some updates. Upgraded the library to a PCL, allowing a wider range of targets. Also, the authentication now happens asynchronously.
I also added back the MIT license since that was the license on the original project.
You can find the old NuGetPackage here. A newer package has been created by Nimgoble, however this repo contains the latest changes.
Construct a GPSOAuthSharp.GPSOAuthClient(email, password)
.
Use await PerformMasterLogin()
or await PerformOAuth()
to retrieve a Dictionary<string, string>
of response values.
Demo response values:
Wrong credentials:
You can download an executable for the Demo on the Releases page.
The source for the Demo is located in the GPSOAuthDemo
directory. The main class is here.
Python result (for comparison):
This project intends to follow the Google-specific parts of the Python implementation extremely carefully, so that any changes made to the Python implementation can be easily applied to this.