ejci / Google-Auth-for-Titanium

Google Auth for Titanium
GNU General Public License v2.0
66 stars 28 forks source link

Tidy up of the files, and get module working with 5.X Ti SDK #11

Open stereoket opened 9 years ago

stereoket commented 9 years ago

There seemed to be some issues with the module working using the new appcelerator SDK, It seems the clientSecret, no longer supported by Google, and the URL requesting the auth token did not match what was being used in the Google oAuth playground. So this is reflected in the main module code.

I have yet to copy this file over to the examples as well. The examples have the tidies JSHINTed and formatted files.

ejci commented 9 years ago

Can you pls send a link to documentation where they are mentioning that client secret is no longer supported?

rohanpujaris commented 8 years ago

Hi @stereoket,

It works well with client secret just tested it on andriod. Google OAuth client id with Application type as "Other" needs client secret to get access token in return for authorization code. Documentation link https://developers.google.com/identity/protocols/OAuth2InstalledApp