Closed andersonkyle closed 7 years ago
@andersonkyle Thanks! We already have a fix in the works for the next release.
Fixed in 2.0.0-okta-rc1 Implementation note: Account will be cacheable. OIDCKeysList is not (but the keys contain in the list are, and the remote resource is only queried when a key cannot be found locally.
@andersonkyle give it a shot and reopen this issue if you run into any problems
That did the trick. Thanks!
Unnecessary HTTP requests are being made to Okta due to the
OIDCKeysList
andAccount
objects not being cached.The WriteCacheFilter.isCacheable(...) method has a number of conditions that need to be satisfied in order for the object to be cached.
The
OIDCKeysList
andAccount
objects don't satisfy the conditions contained within AbstractResource.isMaterialized(...).Both objects do not contain keys named
href
. TheOIDCKeysList
size in my instance is not greater than one either.These additional HTTP requests to Okta add significant time to each request to my application, so a fix would be greatly appreciated. Thanks!