[aerogear-dev] Cordova Ouath2 plugin using Google Play Services

Matthias Wessendorf matzew at apache.org
Tue Feb 24 22:25:41 EST 2015


On Wednesday, February 25, 2015, Daniel Passos <daniel at passos.me> wrote:

> No, we are not using Google Play services API for now for OAuth2 in
> Android land.
>
> But feel free create a new AuthzModule[1] for it ;)
>

+1


>
> [1]
> https://github.com/aerogear/aerogear-android-authz/blob/master/aerogear-android-authz/src/main/java/org/jboss/aerogear/android/authorization/AuthzModule.java
>
> -- Passos
>
>
> On Tue, Feb 24, 2015 at 4:01 PM, Sebastien Blanc <scm.blanc at gmail.com
> <javascript:_e(%7B%7D,'cvml','scm.blanc at gmail.com');>> wrote:
>
>> Cool stuff Brian !
>> The AeroGear OAuth2 Cordova plugin relies on the Native AeroGear OAuth2
>>  Libraries, so maybe Summers and/or Daniel could tell  more about it.
>> Sebi
>>
>>
>> On Tue, Feb 24, 2015 at 7:46 PM, Brian Leathem <bleathem at gmail.com
>> <javascript:_e(%7B%7D,'cvml','bleathem at gmail.com');>> wrote:
>>
>>> Hey gear-heads,
>>>
>>> I recently wrote a Cordova plugin that retrieves a Oauth2 token on
>>> Android using Google Play Services.  The advantage of this approach is
>>> it leverages the single-sign-on capabilities of android, and the app can
>>> retrieve the Oauth2 token without requiring Authentication from the
>>> user. I blogged about it here:
>>>
>>> http://www.bleathem.ca/blog/2015/02/cordova-oauth-google-services.html
>>>
>>> Using a promise-based API it's fairly trivial to fallback to a
>>> traditional Web authentication/authorisation for the Oauth2 token when
>>> the google-play-services approach isn't supported.
>>>
>>> I'm aware the aerogear team has a Oauth2 cordova plugin [1], but it's
>>> not clear to me if the google-play-services integration is supported.
>>> If the Aerogeam would find it useful, I'd be more than happy to provide
>>> a PR to the aerogear cordova plugin providing such integration.
>>>
>>> Thoughts?
>>> Brian
>>>
>>> [1]
>>>
>>> http://staging-aerogearsite.rhcloud.com/docs/specs/aerogear-cordova/OAuth2.html
>>> _______________________________________________
>>> aerogear-dev mailing list
>>> aerogear-dev at lists.jboss.org
>>> <javascript:_e(%7B%7D,'cvml','aerogear-dev at lists.jboss.org');>
>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> <javascript:_e(%7B%7D,'cvml','aerogear-dev at lists.jboss.org');>
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>
>

-- 
Sent from Gmail Mobile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20150225/53b64a31/attachment.html 


More information about the aerogear-dev mailing list