Skip to content

Instantly share code, notes, and snippets.

@lurodrig
Last active November 8, 2018 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lurodrig/deb2e086fa425f2d64111b325caf1b96 to your computer and use it in GitHub Desktop.
Save lurodrig/deb2e086fa425f2d64111b325caf1b96 to your computer and use it in GitHub Desktop.
<web-app>
<module-name>login-module</module-name>
<servlet>
<servlet-name>RedirectServlet</servlet-name>
<servlet-class>cross.context.test.suite.RedirectServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>RedirectServlet</servlet-name>
<url-pattern>/redirect</url-pattern>
</servlet-mapping>
<security-constraint>
<web-resource-collection>
<web-resource-name>protected module</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>manager</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<role-name>manager</role-name>
</security-role>
</web-app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment