FIWARE-TMForum / Business-API-Ecosystem

The FIWARE/TMForum Business API Ecosystem allows the monetization of different kind of assets (both digital and physical) during the whole service life cycle, from offering creation to its charging, accounting and revenue settlement and sharing
https://business-api-ecosystem.rtfd.io/
GNU Affero General Public License v3.0
38 stars 22 forks source link

Create an "admin" user #37

Closed Urtza2 closed 6 years ago

Urtza2 commented 6 years ago

I have create an application in IDM when I have authorize a user with two roles: -Seller -Provider

I am not be able to access "Administration" section of the web portal. How can I do this?

I have to create an organization or what are the steps to do this?, is it possible to create an user with two roles?

Thanks in advance Urtza

CTidelius commented 6 years ago

Did you manage to solve this? I cannot access the administration section either.

Urtza2 commented 6 years ago

Hi CTidelius, I have done several things but I do not know if they are all necessary, the truth is that it has worked for me. First of all I have created and application in IDM for BAE. After I click on "manage roles" button and I added "Admin" and "orgAdmin" role. When these roles have been saved you have to click on in "Authorize" buttonh in Authorize Users section and add these new roles to the user. Now you have to open config.js (bussiness-logic-proxy) and add the IDM application information:

I have the following in Oauth2 section:

// OAuth2 configuration config.oauth2 = { 'server': 'https://localhost:8443', 'clientID': '9b5425d4-41cc-496f-b368-054b64e5e9fd', 'clientSecret': 'c877e186-1620-476e-89b8-263bb252ffec', 'callbackURL': 'http://localhost:81/auth/fiware/callback', 'isLegacy': false, 'roles': {

'admin': 'admin',

    'customer': 'customer',
    'seller': 'seller',
    **### 'orgAdmin': 'orgAdmin'**

}

};

It is very importart change the value of admin variable in roles. Doing this I solve all of my problems.

Urtza