ging / fiware-idm

OAuth 2.0-based authentication of users and devices, user profile management, Single Sign-On (SSO) and Identity Federation across multiple administration domains.
https://keyrock-fiware.github.io
MIT License
37 stars 81 forks source link

Fixed serviceproviders 500 status #336

Open Jxlle opened 1 year ago

Jxlle commented 1 year ago

Proposed changes

When using the internal Keyrock authorization registry, it is possible to request whether a subject has the access rights to execute a specific action on a specific resource. Service providers which are allowed to provide services to the subject can also be configured, but querying on this attribute throws an error and returns status code 500 to the user of the api. This PR changes a non-existent method (has) to its implemented equivalent (includes), such that the code doesn't crash anymore.

Types of changes

Checklist

Further comments

Problem can also be seen in this forum post: https://spaces.fundingbox.com/spaces/i4trust-i4trust-helpdesk/648daadfb958a4312734000c

github-actions[bot] commented 1 year ago

CLA Assistant Lite bot All contributors have signed the CLA ✍️

MarkusPfundstein commented 1 year ago

+1. Just encounted this issue as well and the fix fixes it