fix OAuth2 Client tests with spring-security-oauth server
Closed this issue · 3 comments
bclozel commented
It looks like Jackson2 is not currently supported by spring-security-oauth. See issue #140 for more details.
Basically waiting for SECOAUTH-358 to be resolved.
bclozel commented
See this pull request: spring-attic/spring-security-oauth#58
bclozel commented
Tests run fine with the following configuration in resthub-web-client pom.xml
<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
<!--<version>1.0.0.RELEASE</version>-->
<version>1.0.1.BUILD-SNAPSHOT</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<repositories>
<repository>
<id>spring-snapshot</id>
<snapshots><enabled>true</enabled></snapshots>
<url>http://maven.springframework.org/snapshot/</url>
</repository>
</repositories>
Once spring-security-oauth2 1.0.1 is released, then we should apply this configuration:
<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
<!--<version>1.0.1.RELEASE</version>-->
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
bclozel commented
Waiting for spring-security-oauth2 1.0.1 release.