Skip to content

cstrachan88/GPSOAuthSharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPSOAuthSharp

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

Updates

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.

NuGet package

You can find the old NuGetPackage here. A newer package has been created by Nimgoble, however this repo contains the latest changes.

Usage

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):

Goals

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.

About

.NET Google Authenticator using Email and Password

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%