Updated Token Introspecting Client Config (markdown)

master
srmoore 2013-07-08 11:30:47 -07:00
parent 196501af73
commit 35fdce1cae
1 changed files with 8 additions and 5 deletions

@ -1,9 +1,12 @@
Steve write stuff here. The following code sets up a filter to take a token passed in to the web application, and fill in the details as an OAuth2Authentication object by introspecting it with the IDP.
In applicationContext.xml: In applicationContext.xml:
``` <oauth:resource-server id="resourceServerFilter" token-services-ref="IntrospectingService" /> ```
<oauth:resource-server id="resourceServerFilter" token-services-ref="IntrospectingService" />
<bean id="IntrospectingService" class="org.mitre.oauth2.introspectingfilter.IntrospectingTokenService"> <bean id="IntrospectingService" class="org.mitre.oauth2.introspectingfilter.IntrospectingTokenService">
<property name="clientId" value="cws.dictionary"/> <property name="clientId" value="yourClientId"/>
<property name="clientSecret" value="dictionary.secret"/> <property name="clientSecret" value="yourClientSecret"/>
<property name="introspectionUrl" value="${idp.url}introspect"/> <property name="introspectionUrl" value="${idp.url}introspect"/>
</bean> ``` </bean>
```