I have generated a microservice using JHipster with JWT authentication, but I can't find the security/jwt folder that usually appears in src/main/java/.../security
Here are the choices I made during the microservice setup:
Project name: enrolementApi
Application type: Microservice
Java package: sn.synapsys.conseils
Build tool: Maven
Spring WebFlux: Yes
Server port: 8081
Service discovery: JHipster Registry (Eureka)
Authentication type: JWT Authentication
Database: PostgreSQL (both development and production)
API First with OpenAPI: Yes
Microfrontend: None (no client)
Internationalization: No
Issue After generating the project, I can't find the security/jwt folder or the related classes (TokenProvider, JWTFilter, etc.). However, I explicitly selected JWT authentication during the setup.
Questions Has JHipster changed the file structure in recent versions?
Do I need to manually enable or configure something to generate these files?
Is there a command to regenerate only the security part?
On my previous microservice i was using :
Authentication authentication = new UsernamePasswordAuthenticationToken(login, password); String token = tokenProvider.createToken(authentication, false);
To generate a token, how can i generate the token with spring security ?
Thanks in advance for your help!