Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A simple example for implementing OAuth2.0 [closed]

Tags:

java

oauth

I want to build my project using OAuth2.0,i have read the example page by url:https://bitbucket.org/smartproject/oauth-2.0/wiki/Home.When i run the Oauth-demo by Github,an error message with 404 returned by setting redirect URi to http://localhost:8080/myproject/redirect. I have no idea what I can do and I am wonder who can give me some hints or a simple example including client and authorization server.

like image 842
user652761 Avatar asked Mar 10 '11 02:03

user652761


2 Answers

Spring security supports oauth 1.0 and 2.0

oauth example code

this should help

like image 148
Mark Bakker Avatar answered Sep 30 '22 10:09

Mark Bakker


If you are use to use Spring and Jersey, this is a very good starting point, using the Spring Security OAuth2 implementation

I personally do not recommend Amber because is in a very early state and their development goes too sluggish.

like image 30
Antonio Saco Avatar answered Sep 30 '22 08:09

Antonio Saco