OAuth's tokens and sessions in REST

后端 未结 2 1469
没有蜡笔的小新
没有蜡笔的小新 2020-12-12 21:04

The other minute I read an article on OAuth. It described especially the tokens being exchanged between client and service provider during a series of requests.

The

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-12 21:19

    Authentication is a state that must be tracked somehow when dealing in web interactions. Ultimately if your app is restful or not, the server must be able to track each users "authenticated state" and unfortunately that requires some kind of circumvention of the underlying stateless nature of HTTP and any additional transports/techniques (like REST) on top of it.

    Hence to develop any kind of authenticated app, a principle of state must be shoe horned in somewhere, and if that so happens to be OAuth on top of REST, thats how it must be!

提交回复
热议问题