
Originally Posted by
Dave Syer
Do you have an example config that you show to remind us what that was for (if it did anything)?
yes, concerning the "resource-details-service-ref": first of all, it is described in the docs,
The client element is used to configure the OAuth 2.0 client mechanism. The following attributes can be applied to the client element:
token-services-ref: The reference to the bean that stores tokens on behalf of a user. Default value is an instance of InMemoryOAuth2ClientTokenServices.
resource-details-service-ref: The reference to the bean that services the known resource details.
-so I thought this is the way it should work. So my XML looks something like this:
Code:
<!--apply the oauth client context -->
<oauth:client id="oauth2ClientFilter"
resource-details-service-ref="resourceDetailsService"/>
<bean id="resourceDetailsService" class="org.springframework.security.oauth2.client.resource.InMemoryOAuth2ProtectedResourceDetailsService">
<property name="resourceDetailsStore">
<map>
<entry key="clientKey" value-ref="myClientResource"/>
</map>
</property>
</bean>