How to Design RESTful API Permissions

Source: Internet
Author: User
RT: authorize an app_id with an access_token to access some resources of the API. It may be difficult to set permissions for each url resource, and different requests such as GET and POST can be configured for the same url. Is there a good solution? RT: authorize an app_id with an access_token to access some resources of the API. It may be difficult to set permissions for each url resource, and different requests such as GET and POST can be configured for the same url.

Is there a good solution?

Reply content:

RT: authorize an app_id with an access_token to access some resources of the API. It may be difficult to set permissions for each url resource, and different requests such as GET and POST can be configured for the same url.

Is there a good solution?

1. token format
2. oau22.

Can look at this answer, hope to help you http://segmentfault.com/q/1010000002567482/a-1020000002568368

Ps: Don't be afraid of trouble. You have to do this. Permission management has many tools. For example, spring security is a permission management framework.

We recommend a very good article:

Http://blog.jobbole.com/41233/

For more information, see.

RESTful authorization relies on the framework to provide authorization mechanisms such as Jersey Spring and servlet containers. What is difficult about RESTful is authentication. Once a token is hijacked, authorization is meaningless.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.