a drupal module providing Role-Based Access control to API Products for users in the Apigee Edge Drupal-based developer portal.
This module provides Role-Based Access control to API Products for users in the Apigee
Edge Drupal-based developer portal. It examines the custom attribute “role-access” on the API Product,
and includes the product in the list displayed to a user that has any of the roles in that list.
Given this configuration:
Operational results:
This module is different in that it infers access based on information stored on a custom attribute of the API Product.
You should download all the files for this module into a directory named
sites/all/modules/custom/apiproduct_access_customattr
Then enable the module as normal,
in the Drupal Module administration panel.
To configure the access and roles, login as Administrator, and then use
Configuration > Dev Portal > API Product Role Access - Custom Attribute.
The settings are simple and the interface will be self-explanatory.
The first set of checkboxes allows you to specify a set of roles that will
have access to any API Product that does not have the custom attribute
set. This is the “default set of roles” that will apply to an API
Product unless and until you explicitly provide roles for that product,
in the custom attribute called “roles-access”.
If you want API Products to not be visible by any user unless the
roles-access attribute is set, then uncheck all of those boxes.
The second set of checkboxes allows you to specify a set of roles that
will have access to any API Product, regardless of the presence or value
of the custom attribute. This should probably be set to “administrator”
only.
At any point in time an administrator can modify the roles-access
attribute on any API Product. This setting will be cached by Drupal, so
in a demonstration scenario, be sure to clear the drupal cache, or turn
off caching for API products.
This module is not an official Google product, nor is it part of an official Google product.
This software is provided “as is”, without warranty of any kind, express or implied,
including but not limited to the warranties of merchantability, fitness for a particular
purpose and noninfringement. In no event shall the authors or copyright holders be
liable for any claim, damages or other liability, whether in an action of contract, tort
or otherwise, arising from, out of or in connection with the software or the use or
other dealings in the software.
This module is not a supported part of the Apigee Edge Drupal-based developer portal.
This module is open-source software. If you need assistance, inquire on
The Apigee Community Site. There is no service-level
guarantee for responses to inquiries regarding this module.