<br><br>On Wednesday, February 25, 2015, Daniel Passos &lt;<a href="mailto:daniel@passos.me">daniel@passos.me</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">No, we are not using Google Play services API for now for OAuth2 in Android land. <div><br></div><div>But feel free create a new AuthzModule[1] for it ;)</div></div></blockquote><div><br></div><div>+1<span></span></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>[1] <a href="https://github.com/aerogear/aerogear-android-authz/blob/master/aerogear-android-authz/src/main/java/org/jboss/aerogear/android/authorization/AuthzModule.java" target="_blank">https://github.com/aerogear/aerogear-android-authz/blob/master/aerogear-android-authz/src/main/java/org/jboss/aerogear/android/authorization/AuthzModule.java</a><br><div><br></div><div>-- Passos</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 24, 2015 at 4:01 PM, Sebastien Blanc <span dir="ltr">&lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;scm.blanc@gmail.com&#39;);" target="_blank">scm.blanc@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Cool stuff Brian ! <div>The AeroGear OAuth2 Cordova plugin relies on the Native AeroGear OAuth2  Libraries, so maybe Summers and/or Daniel could tell  more about it. </div><div>Sebi</div><div> </div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 24, 2015 at 7:46 PM, Brian Leathem <span dir="ltr">&lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;bleathem@gmail.com&#39;);" target="_blank">bleathem@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey gear-heads,<br>
<br>
I recently wrote a Cordova plugin that retrieves a Oauth2 token on<br>
Android using Google Play Services.  The advantage of this approach is<br>
it leverages the single-sign-on capabilities of android, and the app can<br>
retrieve the Oauth2 token without requiring Authentication from the<br>
user. I blogged about it here:<br>
<br>
<a href="http://www.bleathem.ca/blog/2015/02/cordova-oauth-google-services.html" target="_blank">http://www.bleathem.ca/blog/2015/02/cordova-oauth-google-services.html</a><br>
<br>
Using a promise-based API it&#39;s fairly trivial to fallback to a<br>
traditional Web authentication/authorisation for the Oauth2 token when<br>
the google-play-services approach isn&#39;t supported.<br>
<br>
I&#39;m aware the aerogear team has a Oauth2 cordova plugin [1], but it&#39;s<br>
not clear to me if the google-play-services integration is supported.<br>
If the Aerogeam would find it useful, I&#39;d be more than happy to provide<br>
a PR to the aerogear cordova plugin providing such integration.<br>
<br>
Thoughts?<br>
Brian<br>
<br>
[1]<br>
<a href="http://staging-aerogearsite.rhcloud.com/docs/specs/aerogear-cordova/OAuth2.html" target="_blank">http://staging-aerogearsite.rhcloud.com/docs/specs/aerogear-cordova/OAuth2.html</a><br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;aerogear-dev@lists.jboss.org&#39;);" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;aerogear-dev@lists.jboss.org&#39;);" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>
</blockquote><br><br>-- <br>Sent from Gmail Mobile<br>