python - Restful设计风格Token-based Authentication疑问请教
PHP中文网
PHP中文网 2017-04-18 09:31:25
0
1
762
PHP中文网
PHP中文网

认证0级讲师

reply all(1)
伊谢尔伦

First of all, your application is separated from front to back, and part of the logic is processed on the front end.
1: Your sentence is a declarative sentence, I don’t know what to answer.
2: If you only implement the REST API, the front end should use Angular and other frameworks, and the jump is handled by the front end.
3: HTTP Auth can be passed through parameters. When no parameters are passed, the operating system or browser has its own implementation to allow the user to enter the account password.
4: The check cookie here refers to the browser cookie, which is detected by the front end. As long as no HTTP request is passed in, it will still be stateless.
5: The real REST API only and must require the Auth interface to verify Auth. As for the case where more data will be transmitted, the REST API will cause data redundancy in order to ensure statelessness.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template