ProgressNS / sidekick-feedback

This repository is for feedback regarding NativeScript Sidekick. Use the issues system here to submit feature requests or vote for existing ones.
45 stars 9 forks source link

Feature request: Integration with Android's AccountManager for Oauth2.0 login with Google APIs #208

Open tsonevn opened 6 years ago

tsonevn commented 6 years ago

From @suparnavg on June 13, 2018 9:4

Currently, the Enterprise Authentication service in Sidekick is geared toward the client ID, client secret model. However, for Oauth2.0 login on the android platform, Google lets an app use the Android AccountManger.

Also, in the google console, if I create a new set of Android credentials for my existing web app, the auth credentials are in this form: image

Would be cool if there was a way to do Enterprise auth using the Android AccountManager (for enterprises running on Google's G-Suite platform, for e.g.)

Copied from original issue: NativeScript/nativescript-angular#1381

ggarabedian commented 6 years ago

Hello @suparnavg,

Apologies for the delayed response and thank you for submitting this feature request. The Enterprise Authentication service integrated in Sidekick is part of Kinvey and I had to discuss your feature request with our colleagues to be certain that my answer is complete and I haven't missed anything.

You are correct and currently, Kinvey (and thus Sidekick) does not offer a way to implement a login via the Android Account Manager. My colleagues from Kinvey confirmed that they do not have this feature planned in their roadmap. While they were not able to give me a definitive answer if and when such feature might be implemented, they will research it further and determine if it has its place in their roadmap.

suparnavg commented 6 years ago

Thanks @ggarabedian! (though very belated 😃). I'm sure this feature would be appreciated by Android developers!

suparnavg commented 6 years ago

In any case, do you think the Kinvey team could update their Enterprise Auth documentation (this page) to include the Google OAuth2.0 flow? Google's latest documentation to do this is provided here