Skip to content
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
@vipinsaini434

Description

@vipinsaini434

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions