matteo sperti
matteo sperti

Reputation: 31

What is the easiest way to authenticate and manage user in springboot angular8 webapp?

i am doing a website frontend angular 8, backend springboot, maven, hibernate, and mysql db. I am very principiant in authenticate and manage login, users and roles in front end for pages and backend i saw it jwt toutorial or oauth2 but i have not found any toutorial that worked for me. I really appreciate if someone can suggest me a easiest way or link me some tutorial. If you can help me i could need some explanation about what i need in front end with angular and backend with springboot.

Thanks for helps

update...

mt jwt code is the same of this guide

https://dzone.com/articles/spring-boot-security-json-web-tokenjwt-hello-world

but i can't understand what i need inside JwtUserDetail cause is not present in there... some one knows what i need there?

Upvotes: 0

Views: 59

Answers (1)

Santiago Medina
Santiago Medina

Reputation: 579

JWT is a great option. Instead of trying to start from scratch, i think the easiest way is to try JHipster. It's a code generation tool that you can download, and use to generate a starter project, with the stack you require (Angular frontend, Spring Boot backend), and JWT authentication. It has an interactive command line UI, that prompts for a lot of options available to generate the app. It also allows to generate code (backend and frontend) for other authentication mechanisms, as you can see here: Security

Upvotes: 1

Related Questions