Added entitlements and permissions fields to user model in TinyDB, these are string fields that are just comma-separated lists:
entitlements: "advisor,ansible,settings"
Added entitlements and permissions fields to UI table and form
Added code to examine X-Rh-Identity header in requests and lookup user in TinyDB and return entitlements/permissions present on the user. If entitlements/permissions are None, return defaults
Meant to address #2, note that this PR does not handle resourceDefinitions or the is_trial part of the entitlements endpoint.
entitlements
andpermissions
fields to user model in TinyDB, these are string fields that are just comma-separated lists:entitlements
andpermissions
fields to UI table and formX-Rh-Identity
header in requests and lookup user in TinyDB and return entitlements/permissions present on the user. Ifentitlements/permissions
areNone
, return defaultsMeant to address #2, note that this PR does not handle
resourceDefinitions
or theis_trial
part of theentitlements
endpoint.