I have used various OAuth2.0 authentication based web application(facebook, twit
ID: 661523 • Letter: I
Question
I have used various OAuth2.0 authentication based web application(facebook, twitter, quickbook, etc) and accessed their APIs for fetching data services. Now I am looking for developing an web based application which implements OAuth2.0 based authentication itself. User can create apps and get token and secret and other details. My programming language is Java. I could not find enough literature over the same.
Is there any library which can be used to implement OAuth2.0 authentication or any specifications which can be implemented ?
Explanation / Answer
You can take a look at ApiFest OAuth20 project - http://apifest.com. The project implements OAuth20 specification final version (RFC 6749). The project is available at github and it is released under Apache License, Version 2.0. ApiFest is written in pure Java and uses Netty as a server. It's light and fast. Currently, you can use Redis as a database or MongoDB. Note, that you can easily add another database. The project setup is easy - see the project README.md file. You can register client apps - as a response you will receive client_id and client_secret. Then you can use these credentials to obtain access tokens and use them as per your needs/OAuth20 spec