Independent permissions to methods RESTAPI

ss_permission_api

Extension to CS-Cart and Multi-Vendor allows creating access rules to store RESTAPI.

Domain(s) installation separated comma
For stores purchased in SoftSolid free installation.

Extension to CS-Cart and Multi-Vendor allows creating access rules to store RESTAPI. In standard, access to RESTAPI is regulated separately for each user group. Added rules allow to block (or give) access only to selected administrator, only for chosen API object (ex. Products, Orders) only with selected API method (ex. GET, PUT).

We start from installing an extension:

Managing RESTAPI rules menu is in tab Customers:

List contains all information about defined rules. New rules can be added with + button in upper right corner:

When adding rules, we have to define those parameters:

- Name: makes rule different from others, serves only informational purpose.

- Administrator: which administrator is affected by the rule.

- Method: GET means reading data, POST modifying it, PUT adding new data (ex. orders or products), and DELETE deleting data.

- Entity: Object, for which rule applies. Full list of objects and their specification is available here.

- Access status: should the rule block access to part of the RESTAPI, or give it.

Add-on overrides standard RESTAPI rules, which are defined in usergroup settings. Here, administrators by default cannot access products and have full access to orders.

Because we created rule that blocks Orders object for administrator test@test.pl, trying to download orders gives him a notification:

Administrator can download information about products, even though they are blocked in user group  - because we created record that gives administrator access to Products object.

Add-on amplifies store security, letting you set precise RESTAPI access range for each administrator.

We invite you to shopping!

Program:
  • CS-Cart
  • Multi-Vendor
Version:
  • 4.11.x
  • 4.10.x
  • 4.9.x
  • 4.8.x
  • 4.7.x
  • 4.6.x
  • 4.5.x
  • 4.4.x
  • 4.3.x
  • 4.2.x
  • 4.1.x
  • 4.0.x
Changes in the code :
  • Changes in core

Administrator of your personal data from this form will be SoftSolid (CS-Cart Polska). Data will be processed basing on art. 6 law. 1 lit. a RODO(GDPR) to contact with you. Your correspondence may be archived. Your data will be stored in database as long as it will exist. You can demand access to your personal data, you can fix it, delete or restrict processing, you can prohibit processing it, and you can move it as stated in art. 16-21 RODO(GDPR). You can delete your account anytime. If you decide that your data is processed illegally, you can place a complaint. Providing data is voluntary, but required to place form.

Good to know Good to know