/spring-mixed-auth-example

Spring boot example on defining multiple "authentication entry points" based on different rules.

Primary LanguageJava

Spring-Boot multiple authentication "entries" example

This project exemplifies how to configure Spring Boot to handle multiple authentication options when you have a monolith architecture and needs to expose and authenticate multiple endpoints differently:

Examples:

  • /api - uses REST with JWT token
  • /app - uses Form based with Session auth.