nydiarra / springboot-jwt

Example Springboot Application for Securing a REST API with JSON Web Token (JWT). For an example Integration with Angular (version 2+) go to https://github.com/ipassynk/angular-springboot-jwt
548 stars 330 forks source link

Getting user info #8

Closed ffahri closed 6 years ago

ffahri commented 6 years ago

Hey, i implement this to my project. I want to know how to get which user making the request. So basically i dont want to user1 look user2 data.(if user1 wants to look user2 data dont show etc..) Could anyone point me to right direction. Thanks

ffahri commented 6 years ago

I manage to use Http request and creating session by decoding jwt and take user authorities without changing api server.