Guest User

Untitled

a guest
Aug 13th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. <security-role>
  2. <description>
  3. The role that is required to access the application
  4. </description>
  5. <role-name>admin</role-name>
  6. </security-role>
  7. <security-constraint>
  8. <web-resource-collection>
  9. <web-resource-name>RestrictedWebResource</web-resource-name>
  10. <url-pattern>/*</url-pattern>
  11. </web-resource-collection>
  12. <auth-constraint>
  13. <role-name>admin</role-name>
  14. </auth-constraint>
  15. <user-data-constraint>
  16. <!-- transport-guarantee can be CONFIDENTIAL, INTEGRAL, or NONE -->
  17. <transport-guarantee>NONE</transport-guarantee>
  18. </user-data-constraint>
  19. </security-constraint>
  20. <login-config>
  21. <auth-method>BASIC</auth-method>
  22. </login-config>
  23.  
  24. <security:http auto-config="true" use-expressions="true"> <security:intercept-url pattern="/rest/*" access="admin" />
  25. <security:http-basic />
  26. </security:http>
  27. <security:authentication-manager>
  28. <security:authentication-provider>
  29. <security:user-service>
  30. <security:user name="ash" password="ash" authorities="admin" />
  31. </security:user-service>
  32. </security:authentication-provider>
  33. </security:authentication-manager>
  34.  
  35. <?xml version='1.0' encoding='utf-8'?>
  36. <tomcat-users>
  37. <role rolename="manager"/>
  38. <role rolename="admin"/>
  39. <user username="ash" password="ash" roles="admin,manager"/>
  40. </tomcat-users>
  41.  
  42. hybris.security.http.basic.auth.enable=true
  43. hybris.security.http.basic.auth.username=ash
  44. hybris.security.http.basic.auth.password=ash
  45.  
  46. <Resource name="UserDatabase" auth="Container"
  47. type="org.apache.catalina.UserDatabase"
  48. description="User database that can be updated and saved"
  49. factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
  50. pathname="conf/tomcat-users.xml" />
  51.  
  52. https://localhost:9002/rest/v2/**/**/**
Add Comment
Please, Sign In to add comment