Skip to content

Instantly share code, notes, and snippets.

@bbalakriz
Created October 19, 2022 10:22
Show Gist options
  • Save bbalakriz/e359f2d81a9462edbdb89cca5d7ff6ea to your computer and use it in GitHub Desktop.
Save bbalakriz/e359f2d81a9462edbdb89cca5d7ff6ea to your computer and use it in GitHub Desktop.
......
......
<security-constraint>
<web-resource-collection>
<web-resource-name>REST web resources</web-resource-name>
<url-pattern>/services/rest/*</url-pattern>
<http-method>GET</http-method>
<http-method>PUT</http-method>
<http-method>POST</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
<!----- Commenting out the auth-constraint ----------->
<!--auth-constraint>
<role-name>kie-server</role-name>
<role-name>user</role-name>
</auth-constraint-->
......
......
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>REST web resources</web-resource-name>
<url-pattern>/services/rest/*</url-pattern>
<http-method>OPTIONS</http-method>
</web-resource-collection>
<!-- No authentication. -->
</security-constraint>
....
<!----- Commenting out the login-config, security-role ----------->
<!--login-config>
<auth-method>BASIC</auth-method>
<realm-name>KIE Server</realm-name>
</login-config>
<security-role>
<role-name>kie-server</role-name>
</security-role>
<security-role>
<role-name>user</role-name>
</security-role-->
....
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment