Is there a framework2 plugin to create an OAuth REST API?

I would like to create a web service (RESTful JSON API), and I would like to protect my API with OAuth 1.0 or 2.0. I use Play2 with Scala, and I cannot find examples of writing OAuth providers (not consumers) in Scala and in Play2.

I think the combination should be very familiar, suppose you are creating an API such as GitHub and you want to allow certain applications and offer them CONSUMER_KEY, CONSUMER_SECRET to access your APIs. For this you need an easy-to-use library. Not to say that you need to bake it in Play2.

Any ideas? libraries? tricks?

+4
source share
1 answer

We built the OAuth 1.0 provider in Scala / Lift. It is encoded for the Open Bank project, but it is fairly easy to extract for another Lift application.

Please look:

https://github.com/OpenBankProject/OpenBankProject-Server/wiki/OAuth-1.0-client---Server-connexion

By the way, we chose OAuth 1.0 instead of OAuth 2.0, because OAuth 2.0 is not fixed yet.

Greetings, Simon.

0
source

All Articles