Do sessions really violate RESTfulness?

前端 未结 7 1176
小蘑菇
小蘑菇 2020-11-22 08:35

Is using sessions in a RESTful API really violating RESTfulness? I have seen many opinions going either direction, but I\'m not convinced that sessions are RESTless

7条回答
  •  不思量自难忘°
    2020-11-22 08:54

    i think token must include all the needed information encoded inside it, which makes authentication by validating the token and decoding the info https://www.oauth.com/oauth2-servers/access-tokens/self-encoded-access-tokens/

提交回复
热议问题