In some circumstances the network glitches can result in indefinite blocking of JWKS keys refresh background job. This commit adds setting the connect and read timeouts with default value of 60 seconds for both. Use oauth.connect.timeout.seconds and oauth.read.timeout.seconds system properties, env vars or as part of listener or client jaas config to set non-default values in seconds.
In some circumstances the network
glitches
can result in indefinite blocking of JWKS keys refresh background job. This commit adds setting the connect and read timeouts with default value of 60 seconds for both. Useoauth.connect.timeout.seconds
andoauth.read.timeout.seconds
system properties, env vars or as part of listener or client jaas config to set non-default values in seconds.Signed-off-by: Marko Strukelj marko.strukelj@gmail.com