Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <security-role>
- <description>
- The role that is required to access the application
- </description>
- <role-name>admin</role-name>
- </security-role>
- <security-constraint>
- <web-resource-collection>
- <web-resource-name>RestrictedWebResource</web-resource-name>
- <url-pattern>/*</url-pattern>
- </web-resource-collection>
- <auth-constraint>
- <role-name>admin</role-name>
- </auth-constraint>
- <user-data-constraint>
- <!-- transport-guarantee can be CONFIDENTIAL, INTEGRAL, or NONE -->
- <transport-guarantee>NONE</transport-guarantee>
- </user-data-constraint>
- </security-constraint>
- <login-config>
- <auth-method>BASIC</auth-method>
- </login-config>
- <security:http auto-config="true" use-expressions="true"> <security:intercept-url pattern="/rest/*" access="admin" />
- <security:http-basic />
- </security:http>
- <security:authentication-manager>
- <security:authentication-provider>
- <security:user-service>
- <security:user name="ash" password="ash" authorities="admin" />
- </security:user-service>
- </security:authentication-provider>
- </security:authentication-manager>
- <?xml version='1.0' encoding='utf-8'?>
- <tomcat-users>
- <role rolename="manager"/>
- <role rolename="admin"/>
- <user username="ash" password="ash" roles="admin,manager"/>
- </tomcat-users>
- hybris.security.http.basic.auth.enable=true
- hybris.security.http.basic.auth.username=ash
- hybris.security.http.basic.auth.password=ash
- <Resource name="UserDatabase" auth="Container"
- type="org.apache.catalina.UserDatabase"
- description="User database that can be updated and saved"
- factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
- pathname="conf/tomcat-users.xml" />
- https://localhost:9002/rest/v2/**/**/**
Add Comment
Please, Sign In to add comment