Sep 20th, 2012, 10:00 AM
I am new to oauth so sorry if my question does not make sense for you.
I want to use oauth 2.0
The only resource that I found is this one which I guess is oauth 1.0 and not 2.0.
Where can I found the right one?
By the way I found this as well which:
First of all distributed from org.codehaus.spring-security-oauth and not the sprig-security itself.
Secondly it's spring security version is <spring.security.version>3.0.2.RELEASE</spring.security.version>.
I thought maybe the right one would be based on spring security 3.1 , which I really use in my project.
Thanks for your response in advance
Sep 20th, 2012, 12:04 PM
The links at http://www.springsource.org/spring-security-oauth (your first link) all look up to date, and there is plenty of mention of OAuth2 there. Did you have some issues finding the right links from there?
The codehaus project is old - it was a precursor to the current Spring Security OAuth on github (https://github.com/SpringSource/spring-security-oauth).
Sep 21st, 2012, 03:12 AM
Since packages are named oauth and not oauth2.
e.g. ClientDetailsService is undefined which is in org.springframework.security.oauth2.provider
Do you have any idea?
Last edited by sara_pm; Sep 21st, 2012 at 04:24 AM.
Sep 22nd, 2012, 09:01 PM
I'm currently trying to build the spring-security-oauth sample apps, but the test fails (version as of today).
(Of course I can skip the test in order to build, but would be nice to have all tests succeed).
Tests in error:
writeValueAsStringWithNullScope(org.springframewor k.security.oauth2.common.TestOAuth2AccessTokenSeri alizer)
Here are the surefire reports:
Another thing I noticed about the wiki github (@sara_pm, maybe that's the reason for the package names):
Shouldn't the artifactId not be spring-security-oauth2 instead of spring-security-oauth ? Would be good if it would be mentioned there. I found this info somewhere on StackOverflow (http://stackoverflow.com/questions/9...th2-is-there-a).
Last edited by mathias.lin; Sep 22nd, 2012 at 09:46 PM.
Sep 23rd, 2012, 06:46 AM
All unit tests are working for me (and they also pass in the CI builds). Thanks for the bug report for the docs - pull requests are welcome in general (although this one is so trivial I'm not sure it's worth it).
Sep 27th, 2012, 08:15 AM
which worked fine and oauth 2.0 packages are inside, however when I change the version to :
I do not have oauth 2.0 packages inside anymore.
@mathias.lin: using artifactId:spring-security-oauth2 caused "missing artifactId ..." Error!
I need the latest version cause we already migrate to spring-security 3.1.
Would please tell , what mistake did I made?
Oct 22nd, 2012, 03:15 PM
I have the same problem.
Originally Posted by mathias.lin
What I did:
- Downloading Eclipse Juno EE
- Installing maven and gitplugin in Eclipse
- git clone from https://github.com/SpringSource/spri...rity-oauth.git
- maven install in /spring-security-oauth2/pom.xml
I'm using Windows 7 64bit.
Any ideas what the reason for the problem is?
Oct 23rd, 2012, 02:52 AM
Are you saying you get a test failure? Can you provide some more detail on what is failing and how? It all works for me.