JWT & Spring Boot
Hello, I develop a website and I have some questions for the connexion with users.
For the back-end, I use Spring Boot and I have this function :
I return this because I don't really know what to return.
I would like use a JWT token and I search on the web and I don't understand what I have to do. Actually I would like a token and all the informations I need about the user (email, name etc...) , so what can I return and how to convert these datas in VueJS (I use Axios to recover the datas) ?
10 Replies
⌛ This post has been reserved for your question.
Hey @Maxence! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.If you need more information to answer please feel free to ask
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.last try lol
did you read about adding jwt
if you had it you would return the jwt token
I do not understand what I should do. I nedd a token and all the informations about user
did you read these
https://www.baeldung.com/java-json-web-tokens-jjwt
https://www.baeldung.com/spring-security-oauth-jwt
Baeldung
Supercharge Java Auth with JSON Web Tokens (JWTs) | Baeldung
A comprehensive, super detailed guide on getting JSON Web Tokens right with JWTs.
Baeldung
Using JWT with Spring Security OAuth | Baeldung
A guide to using JWT tokens with Spring Security 5.
I tried but I don't speak fluent english and as I said I don't understand how it really work but ok I will manage
try to use a google translator
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.