README.adoc 929 B

1234567891011121314151617181920212223242526272829
  1. = Spring Observability Sample
  2. This sample demonstrates https://docs.spring.io/spring-security/reference/servlet/integrations/observability.html#page-title[Spring Security's integration with Micrometer].
  3. == Prerequisites
  4. The sample is configured to export traces to Zipkin.
  5. In order to see these traces, you will need https://github.com/jonatan-ivanov/local-services/tree/main/zipkin[a Zipkin instance] running on `localhost`.
  6. == Using the Sample
  7. After running this sample like so:
  8. .Java
  9. [source,java,role="primary"]
  10. ----
  11. ./gradlew :bootRun
  12. ----
  13. Then you can query `GET /message` using `user/password` and `admin/password`.
  14. Using HTTPie, that would look something like this to get a successful response:
  15. ```bash
  16. http -a user:password :8080/message`
  17. ```
  18. If you want to see a failed authentication, try `http -a user:wrong :8080/message`.
  19. If you want to see a failed authorization, try `http -a user:password :8080/secret`