I am trying to determine if I can use a different authentication provider for each client ID in the same spring oauth2 authorization service.
In particular, I want to allow the issuance of a resource token to a resource owner for external users who are logged into our corporate sites, and an implied grant for corporate users. Corporate users are stored on our corporate Active Directory server, and external users are stored on a separate LDAP server.
Is it possible to somehow bind AuthenticationManager to clientId?
source
share