README.adoc 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. = Spring Data Sample
  2. After running this sample like so:
  3. .Java
  4. [source,java,role="primary"]
  5. ----
  6. ./gradlew :bootRun
  7. ----
  8. Then you can query for messages using `luke/password` and `rob/password`.
  9. Because the domain objects are secured by ACLs, Rob will only see Rob's messages, and Luke will only see Luke's.
  10. For example, querying `/` with `luke`, you'll see:
  11. [source,json]
  12. ----
  13. [
  14. {
  15. "created": "2014-07-12T10:00:00Z",
  16. "id": 110,
  17. "summary": "Hello Luke",
  18. "text": "This message is for Luke",
  19. "to": "luke"
  20. },
  21. {
  22. "created": "2014-07-12T10:00:00Z",
  23. "id": 111,
  24. "summary": "Greetings Luke",
  25. "text": "This message is for Luke",
  26. "to": "luke"
  27. },
  28. {
  29. "created": "2014-07-12T10:00:00Z",
  30. "id": 112,
  31. "summary": "Is this secure?",
  32. "text": "This message is for Luke",
  33. "to": "luke"
  34. }
  35. ]
  36. ----
  37. Read more about https://docs.spring.io/spring-security/reference/servlet/authorization/acls.html[Authorization by ACL] in the Spring Security Reference.