Skip to content

Instantly share code, notes, and snippets.

@rashidi
Created October 10, 2011 14:26
Show Gist options
  • Save rashidi/1275452 to your computer and use it in GitHub Desktop.
Save rashidi/1275452 to your computer and use it in GitHub Desktop.
Enable Authorization For Spring Insight
<security-constraint>
<web-resource-collection>
<web-resource-name>Random Writings Insight</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>insight_admin</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Insight</realm-name>
</login-config>
<security-role>
<description>Random Writings Insight Admin</description>
<role-name>insight_admin</role-name>
</security-role>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment