Closed pstetsuk closed 3 weeks ago
OAuth2TokenIntrospectionAuthenticationProvider doesn't find RegisteredClient because used wrong parameter when call RegisteredClientRepository. In the code it looks like:
OAuth2TokenIntrospectionAuthenticationProvider
RegisteredClient
RegisteredClientRepository
RegisteredClient authorizedClient = this.registeredClientRepository .findById(authorization.getRegisteredClientId());
Need to use findByClientId() instead
findByClientId()
OAuth2TokenIntrospectionAuthenticationProvider
doesn't findRegisteredClient
because used wrong parameter when callRegisteredClientRepository
. In the code it looks like:Need to use
findByClientId()
instead