added "OPTIONS" option to /token filter with no auth, addresses #527

pull/576/head
Justin Richer 11 years ago
parent e9d4acfd03
commit df589b39df

@ -66,9 +66,11 @@
<security:http pattern="/token"
create-session="stateless"
authentication-manager-ref="clientAuthenticationManager"
entry-point-ref="oauthAuthenticationEntryPoint">
entry-point-ref="oauthAuthenticationEntryPoint"
user-expressions="true">
<security:intercept-url pattern="/token" access="IS_AUTHENTICATED_FULLY" />
<security:intercept-url pattern="/token" access="permitAll" method="OPTIONS" /> <!-- allow OPTIONS calls without auth for CORS stuff -->
<security:intercept-url pattern="/token" access="isAuthenticated()" />
<security:anonymous enabled="false" />
<security:http-basic entry-point-ref="oauthAuthenticationEntryPoint" />
<!-- include this only if you need to authenticate clients via request parameters -->

Loading…
Cancel
Save