Skip to content

Commit

Permalink
Merge pull request #2 from fdelavega/master
Browse files Browse the repository at this point in the history
Fix import issues
  • Loading branch information
fdelavega committed May 7, 2019
2 parents c00d219 + cb60b5d commit 096a33e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
21 changes: 19 additions & 2 deletions README.md
@@ -1,2 +1,19 @@
# biz-umbrella-service
BAE plugin for selling services secured with an API Umbrella proxy
# Umbrella Service BAE plugin

This repository includes an asset type extension for the FIWARE [Business API Ecosystem GE](https://github.com/FIWARE-TMForum/Business-API-Ecosystem).

This BAE plugin supports the monetization of API services secured with an instance of [Apinf Umbrella](https://github.com/apinf/apinf-umbrella).

This BAE plugin has been tested in BAE versions 7.4.0 and 7.6.0

This plugin supports the following meta data to be included as part of BAE products:

* **Required Headers**: Required headers field as included in the API Umbrella sub-path configuration.
* **Authorization Method**: Whether user access to backend service is controlled using FIWARE IDM roles or API Umbrella native roles
* **Acquisition Role**: Role to be granted to customers
* **Access to sub-paths allowed**: If true, customers will be able to access to any sub-path of the monetized service
* **Additional query strings allowed**: If true, customers will be able to call the service with different query strings as the included in the asset URL
* **Admin API Key**: API key to be used by the BAE to access to the API Umbrella admin API
* **Admin Auth Token**: Admin token to be used by the BAE to access to the Umbrella admin API

This plugin supports accounting based on *Api call* units.
13 changes: 0 additions & 13 deletions keystone_client.py
Expand Up @@ -17,19 +17,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.


from __future__ import unicode_literals

import requests
from urlparse import urlparse

from django.core.exceptions import PermissionDenied

from wstore.asset_manager.resource_plugins.plugin_error import PluginError

from settings import KEYSTONE_HOST, KEYSTONE_PASSWORD, KEYSTONE_USER


from __future__ import unicode_literals

import requests
Expand Down
3 changes: 3 additions & 0 deletions settings.py
Expand Up @@ -19,6 +19,9 @@

from __future__ import unicode_literals

from os import environ


UNITS = [{
'name': 'Api call',
'description': 'The final price is calculated based on the number of calls made to the API'
Expand Down

0 comments on commit 096a33e

Please sign in to comment.