Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
External Participants:
-
HD-Chapter:Apps
-
HD-Enabler:WStore
Description
Hello Aitor,
We are struggling with managing user roles in WStore (we are using the
FIWARE IdM - OAuth). We can manage roles in the FIWARE Lab without
problems. By default, all users that log in with our application have a
provider role - we do not want that. We want users to be only
customers/purchasers. The providers should be only the people that we
have allowed in our application.
Can you pinpoint us the proper way to make this change?
Best wishes!
[Created via e-mail received from: azure <azure@blitab.com>]
Activity
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
2h 56m | 1 | Francisco de la Vega | 14/Apr/16 6:18 PM | |||||
|
13d 20m | 1 | Francisco de la Vega | 27/Apr/16 6:38 PM | |||||
|
13d 17h 5m | 1 | Francisco de la Vega | 11/May/16 11:43 AM |
Fernando Lopez
made changes -
Fix Version/s | 2021 [ 12600 ] |
Backlog Manager
made changes -
Summary | Wstore_Roles | FIWARE.Request.Tech.Apps.Store.Wstore_Roles |
Francisco de la Vega
made changes -
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Francisco de la Vega
made changes -
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Francisco de la Vega
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Backlog Manager
made changes -
Assignee | Francisco de la Vega [ fdelavega ] |
Backlog Manager
made changes -
HD-Chapter | Apps [ 10836 ] |
Manuel Escriche
made changes -
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Manuel Escriche
made changes -
Field | Original Value | New Value |
---|---|---|
HD-Enabler | WStore [ 10858 ] |
FW External User
created issue -
Hi,
You are right, this line is hardcoding the roles to give them all to all users.
To use the idm ones, try the following:
Remove
user_roles = ['customer', 'provider']
In line 145, replace: 'roles': user_roles
by 'roles': user_org.roles
Best regards,
Francisco