0

I want to extend my website to support OAuth so that third party applications can access data and perform actions on behalf of the website user. How should I go about it?

Basically I would like to know how to go about generating access tokens and the database setup that should be done.

  • What platform do you have on your site (language + framework + persistent storage + HTTP server)? – Artem Oboturov Jun 14 '12 at 15:09
  • @ArtemOboturov: Java Spring, MySQL, and GlassFish. – Gaurav Chauhan Jun 15 '12 at 05:00
  • In this case this seems to be duplicate for [http://stackoverflow.com/questions/1731966/library-for-oauth-provider-java](http://stackoverflow.com/questions/1731966/library-for-oauth-provider-java). – Artem Oboturov Jun 15 '12 at 09:02
  • The link in the comment above this one is broken, it should be http://stackoverflow.com/questions/1731966/library-for-oauth-provider-java – iamnotsam Jun 23 '12 at 02:39

1 Answers1

0

First you should choose which authorization schema you will implement on your site. In your case it could be:

  1. Authorization Code Grant
  2. Implicit Grant

Then taking in account a programming language and framework you can make your choice.

In any case you'll have to configure some kind of routing for OAuth urls and redirects and a persistent storage.

Community
  • 1
  • 1
Artem Oboturov
  • 4,344
  • 2
  • 30
  • 48
  • OK. For Spring there's [https://github.com/SpringSource/spring-security-oauth/wiki/oauth2](https://github.com/SpringSource/spring-security-oauth/wiki/oauth2) from [http://static.springsource.org/spring-security/oauth/](http://static.springsource.org/spring-security/oauth/). – Artem Oboturov Jun 15 '12 at 09:01