spring boot - JWT authentication folder missing in security after generating a microservice with JHipster - Stack Overflow

I have generated a microservice using JHipster with JWT authentication, but I can't find the secur

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!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744273375a4566210.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信