I have created a tenant 'A' in wso2 IS and added my ldap user store in it. In the tenant 'A', I have configured a 'test' service provider with oauth2 as inbound authentication. As of now, I am successful with authenticating all the user in store with oauth2 service provider configuration.
But I could not find any configuration to restrict user from authentication against the service provider 'A' if the user does not have an specific role.
This question was asked about five years ago but it wasn't supported back then, and I would like to know how to accomplish this in WSO2 Identity Server 5.7.4