Spring boot REST token authorization and authentication best practices

前端 未结 2 925
青春惊慌失措
青春惊慌失措 2021-02-03 14:46

What is the best practise for authorization and authentication of users in REST spring boot?

I am building web app with standard pages + REST API for mobile. I looked a

2条回答
  •  被撕碎了的回忆
    2021-02-03 15:24

    Cookie approach seems perfect for the use case. Token can be tied up with user id. Filter can extract cookie and pass user id for example as header to apis - that should take care of GET...

提交回复
热议问题