I'm trying to set my project to use JdbcAuthorizationCodeService. I have set it as the following:
While running on debug mode I'm able to see that the constructor is called. However, when I ask for an authorization code, it works but nothing is persisted to the database. Any idea why this happens? Is this a know issue?
<beans:bean id="authorizationCodeServices" c:dataSource-ref="dataSource" class="org.springframework.security.oauth2.provider.code.JdbcAuthorizationCodeServices"/>
<oauth:authorization-server client-details-service-ref="clientDetails" token-services-ref="tokenServices">
<oauth:authorization-code authorization-code-services-ref="authorizationCodeServices" />
Also I'm using the 1.0.1 RELEASE version. And I tried to debug the beans parser for the authorization-server tag and it is called twice. The first time it catches the right reference, the second time it considers that authorization-code-services-ref is empty. I really don't know what is causing to parse it twice and the second time it is probably parsing another definition. But that's the only one I have. Any tips?