osiam icon indicating copy to clipboard operation
osiam copied to clipboard

Cache client details per request

Open dacrome opened this issue 9 years ago • 0 comments

Moved from https://github.com/osiam/auth-server/issues/67:

@tkrille: I've noticed that 1 request to an OAuth-protected resource on the resource server leads to several roundtrips to the client database. Seems that Spring Security OAuth calls clientDetailsService.loadClientByClientId(clientId) for almost every single attribute it has to know about. We should somehow cache the result of clientDetailsService.loadClientByClientId(clientId) on a per request basis.

dacrome avatar Oct 26 '15 22:10 dacrome