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>]
Hi,
The WStore version integrated with the FIWARE Idm by default gives the provider role internally to all its users; nevertheless, switching off this is quite easy:
In file src/wstore/social_auth_backend.py, replace line 141 (user_roles = ['customer', 'provider']) by:
user_roles = ['customer']
Best regards,
Francisco