Set resources payload as a list (#7563)

* Set resources payload as a list

* Update changelogs/fragments/7151-fix-keycloak_authz_permission-incorrect-resource-payload.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
fostermi
2023-11-22 11:03:15 -07:00
committed by GitHub
parent d530470d30
commit 09b9ea466f
2 changed files with 3 additions and 1 deletions

View File

@@ -330,7 +330,7 @@ def main():
if not r:
module.fail_json(msg='Unable to find authorization resource with name %s for client %s in realm %s' % (resources[0], cid, realm))
else:
payload['resources'] = r['_id']
payload['resources'].append(r['_id'])
for rs in r['scopes']:
resource_scopes.append(rs['id'])