resthub / resthub-spring-stack

RESThub Spring stack
http://resthub.org/spring-stack.html
Other
121 stars 66 forks source link

fix OAuth2 Client tests with spring-security-oauth server #142

Closed bclozel closed 11 years ago

bclozel commented 11 years ago

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 11 years ago

See this pull request: https://github.com/SpringSource/spring-security-oauth/pull/58

bclozel commented 11 years ago

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 11 years ago

Waiting for spring-security-oauth2 1.0.1 release.