Skip to content

Instantly share code, notes, and snippets.

@william-tran
Created February 19, 2015 01:37
Show Gist options
  • Save william-tran/f27f2dbdb8fdd761bd77 to your computer and use it in GitHub Desktop.
Save william-tran/f27f2dbdb8fdd761bd77 to your computer and use it in GitHub Desktop.
Checking the path for identtiy-zones/uaa in the xml config
<http name="identityZoneSecurity" pattern="/identity-zones/**" create-session="stateless" entry-point-ref="oauthAuthenticationEntryPoint"
use-expressions="true" authentication-manager-ref="emptyAuthenticationManager" xmlns="http://www.springframework.org/schema/security">
<intercept-url pattern="/**" access="#oauth2.hasScope('zones.create') and not request.requestURI.contains('/identity-zones/'+@uaaIdentityZone.id)" method="GET"/>
</http>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment