You are tasked with securing a large-scale Spring Boot application with various microservices. How would you design the security architecture to ensure that the services are securely accessible and user authentication and authorization are handled efficiently?

  • Implementing security separately for each microservice
  • Using OAuth2 with JWT tokens for authentication and authorization
  • Storing user credentials in plaintext in a centralized database
  • Using HTTP Basic Authentication for all services
To secure a large-scale Spring Boot application with microservices efficiently, it's advisable to use OAuth2 with JWT tokens. This approach provides centralized authentication and authorization while allowing secure access to services. The other options have security and efficiency drawbacks, such as storing credentials in plaintext or using HTTP Basic Authentication, which are not recommended for production scenarios.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *