admin管理员组文章数量:1401371
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!
本文标签:
版权声明:本文标题:spring boot - JWT authentication folder missing in security after generating a microservice with JHipster - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744273374a2598292.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论