PDA

View Full Version : Spring OAuth Jar



Dhyanesh
Apr 18th, 2011, 06:19 PM
Spring OAuth is said to be a part of Spring Security, however Spring Security Core or Web 3.0.5 or earlier jars does not seem to have OAuth packages or files. I checked EBR As well as mvnrepo but neither of the spring security core jar has Spring OAuth present. Where should I be looking for Spring's jar containing OAuth package and classes.

Dhyanesh
Apr 18th, 2011, 06:27 PM
Surprisingly it is still under
org.codehaus and not org.springframework

spring-security-oauth-1.0.0.M2

hope so EBR soon provides this jar.

youbetterbejedi
Apr 19th, 2011, 10:25 AM
It is my understanding you need to add spring source repository for milestones to your project pom:



<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>org.springframework.maven.milestone</id>
<name>Spring Maven Milestone Repository</name>
<url>http://maven.springframework.org/milestone</url>
</repository>

Then you need to add the dependencies for Milestone 3, which was the latest milestone last time I checked:



<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth</artifactId>
<version>1.0.0.M3</version>
<scope>compile</scope>
</dependency>


As far as I know, the reason its not in central maven repository it's because not finalized official version.

Dhyanesh
Apr 19th, 2011, 10:42 AM
Thanks for providing latest Milestone details, while browsing Spring's OAuth forums, I learnt that OAuth work in codehaus is deprecated and all the changes are now shipped over to springframework.

I guess they will not release official version till OAuth2 is not finalized.