Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (25 sloc) 1.629 kb
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:oauth="http://www.springframework.org/schema/security/oauth2"
xsi:schemaLocation="http://www.springframework.org/schema/security/oauth2 http://www.springframework.org/schema/security/spring-security-oauth2-1.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="properties">
<value>
my.resource.ids=foo,bar
</value>
</property>
</bean>
<oauth:resource-server id="oauth2ProviderFilter" resource-id="${my.resource.ids}" />
<oauth:resource-server id="anotherProviderFilter" resource-id="another" entry-point-ref="entry" token-services-ref="tokens" />
<oauth:resource-server id="thirdProviderFilter" resource-id="third" entry-point-ref="entry" token-services-ref="tokens" auth-details-source-ref="authenticationDetailsSource" />
<bean id="entry" class="org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint">
<constructor-arg value="/login" />
</bean>
<bean id="authenticationDetailsSource" class="org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationDetailsSource" />
<bean id="tokens" class="org.springframework.security.oauth2.provider.token.DefaultTokenServices">
<property name="tokenStore">
<bean class="org.springframework.security.oauth2.provider.token.InMemoryTokenStore" />
</property>
</bean>
</beans>
Jump to Line
Something went wrong with that request. Please try again.