Following Auth0 tutorial in Secure Spring Boot API
Instead of following the tuto on Java, it has been implemented in Kotlin. Not every step was a straightforward translation, so the following posts were used as references to tackle some minor issues:
- Building web applications with Spring Boot and Kotlin -> mostly for testing.
- Kotlin-Spring Boot: Gotchas -> for validating HTTP requests.
The tuto has all the details, however is important to highlight that this demo client can be used to do some exploratory testing with this API
- If you are exploring Auth0 usage for complex/at scale implementation see Auth0 Architecture Scenarios
- With the basic plan and demo steps, I was able to easily authenticate with a social provider
- For Role-Based Access Control, besides the code changes displayed in the last PR, you should assign the permissions needed to yor API client ID in the Auth0 Dashboard -> APIs -> Your API (Menu API in this example) -> Machine to Machine apps