package com.ankurm.jwtauth;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* Runnable companion for the ankurm.com article
* "Spring Security 7.1 JWT Authentication: The Complete Guide (Spring Boot 4.1)".
*
*
Two signing variants are wired as Spring profiles:
*
* - {@code hs256} (default) - symmetric HMAC, one shared secret.
* - {@code rs256} - asymmetric RSA, private key signs, public key (JWKS) verifies.
*
*
* Two validation styles are wired as Spring profiles too:
*
* - {@code manual} (default) - a hand-written {@code OncePerRequestFilter}.
* - {@code resourceserver} - Spring Security's built-in
* {@code oauth2ResourceServer().jwt()} support.
*
*
* @see docs/01-architecture.md
*/
@SpringBootApplication
public class JwtAuthDemoApplication {
public static void main(String[] args) {
SpringApplication.run(JwtAuthDemoApplication.class, args);
}
}