Discussion:
[OAUTH-WG] OAuth 2.0 for Native Apps: open source client libraries for Android and iOS now available
William Denniss
2016-02-26 19:30:48 UTC
Permalink
The Google Identity team this week open sourced AppAuth for Android and
iOS. AppAuth is a client library for OAuth that enables native Android and
iOS apps to perform authorization flows in a secure and usable way using
in-app browser tabs (Custom Tabs on Android, SFSafariViewController on
iOS), fully supporting the draft best practice
<https://tools.ietf.org/html/draft-ietf-oauth-native-apps> for performing
standards-based auth in native apps.

The libraries are opinionated and follow the draft best practice
completely. Low-level protocol APIs are exposed allowing customizability
including the ability to support OAuth extensions and custom parameters.
Higher level convenience APIs are also provided to assist with auth state
management, and encapsulate common requests like exchanging the
authorization code and making API calls with fresh tokens.

You can grab the code here:
https://openid.github.io/AppAuth-Android
https://openid.github.io/AppAuth-iOS

The library should work with any Authorization Server that supports public
clients with custom URI scheme and/or app-claimed HTTPS redirects (custom
URI schemes are still required for full backwards compatibility support,
though on newer systems app-claimed HTTPS links are viable – both are
supported by the library). We have verified interop with the Google and
PingFederate OAuth implementations.

Please give it a spin, and let me know how it works with your own
implementations!
Hannes Tschofenig
2016-03-11 09:54:41 UTC
Permalink
Hi William,

sorry for the late response but I just wanted to note that I really
appreciate your efforts around making code available for specifications
we are developing. The implementation efforts that take place currently
with specification writing have always provided a lot of valuable feedback.

I will take a look at your libraries in the near future since I am
interested in using those myself for the IoT environment.

Ciao
Hannes
Post by William Denniss
The Google Identity team this week open sourced AppAuth for Android and
iOS. AppAuth is a client library for OAuth that enables native Android
and iOS apps to perform authorization flows in a secure and usable way
using in-app browser tabs (Custom Tabs on Android,
SFSafariViewController on iOS), fully supporting the draft best practice
<https://tools.ietf.org/html/draft-ietf-oauth-native-apps> for
performing standards-based auth in native apps.
The libraries are opinionated and follow the draft best practice
completely. Low-level protocol APIs are exposed allowing customizability
including the ability to support OAuth extensions and custom parameters.
Higher level convenience APIs are also provided to assist with auth
state management, and encapsulate common requests like exchanging the
authorization code and making API calls with fresh tokens.
https://openid.github.io/AppAuth-Android
https://openid.github.io/AppAuth-iOS
The library should work with any Authorization Server that supports
public clients with custom URI scheme and/or app-claimed HTTPS redirects
(custom URI schemes are still required for full backwards compatibility
support, though on newer systems app-claimed HTTPS links are viable –
both are supported by the library). We have verified interop with the
Google and PingFederate OAuth implementations.
Please give it a spin, and let me know how it works with your own
implementations!
_______________________________________________
OAuth mailing list
https://www.ietf.org/mailman/listinfo/oauth
Eduardo Gueiros
2016-03-31 22:45:53 UTC
Permalink
Any plan to bring the libraries to more “young” languages like Swift in iOS and Kotlin in Android?
Dominick Baier
2016-04-01 05:06:07 UTC
Permalink
I am working on a xplat library for .net/xamarin iOS, Android, WinPhone, Windows written in C#.

https://github.com/IdentityModel/IdentityModel.OidcClient

We are making good progress, but the xplat crypto story is the hardest part here.

If anybody wants to contribute, contact me via github.

— 
cheers
Dominick Baier

On 1 April 2016 at 00:46:03, Eduardo Gueiros (***@jive.com) wrote:

Any plan to bring the libraries to more “young” languages like Swift in iOS and Kotlin in Android?
Loading...