This repository was archived by the owner on Aug 28, 2024. It is now read-only.
This repository was archived by the owner on Aug 28, 2024. It is now read-only.
aadauthenticationfilter - failed to initialize userprincipal. com.nimbusds.jose.remotekeysourceexception: couldn't retrieve remote jwk set: read timed out #417
Closed
Description
Environment
-
Spring boot starter:
-azure-active-directory-spring-boot-sample
-
OS Type: Windows
-
Java version:
- 1.8
Summary
ERROR c.m.a.s.a.a.AADAuthenticationFilter - Failed to initialize UserPrincipal.
com.nimbusds.jose.RemoteKeySourceException: Couldn't retrieve remote JWK set: Read timed out
Getting exception of timeout. This exception is coming in AADAuthenticationFilter
This issue was raised previously as well #247
but it is closed now.
Is there any fix. I am using latest version 2.0.5 but still getting the same issue.
Reproduce steps
- Download the example
- azure-active-directory-spring-boot-sample
and run it after changing configuration files.
It is a intermittent issue. May be it is related to server and by default timeout configuraion is 250ms but could you please suggest is there any way to increase it.
Expected Results
Should use the default timeout and timeout should increased if it is taking longer time.
Or should be someway to configure it.
Actual Results
Throwing exception and failing API call.
Metadata
Metadata
Assignees
Labels
No labels