How to validate permission of a user for a resource via API call to KeyCloak? I want to call KeyCloak API with Bearer token of a user and a resource identifier in order to check the permission of the user to access the resource.
KeyCloak should evaluate role of user, scopes and policies and should return true/false whether the user has access to the resource.