Skip to content

[Feature Request] Instance discovery should timeout #5805

@bgavrilMS

Description

@bgavrilMS

MSAL client type

Confidential

Problem statement

  1. Setup the SDK to use an Entra authority host that is not known to the SDK, e.g. login.microsoft.new
  2. Block access to "login.microsoftonline.com/discovery" endpoint by timing it out
  3. Acquire token, e.g. S2S token repeatedly (from cache and from STS)
  4. Examine the HTTP traffic

Actual: the SDK will timeout after 100 seconds (default HttpClient timeout)
Expected: the SDK should timeout after a reasonable delay (e.g. 10 seconds) and not attempt instance discovery again. A token should be retrieved.

Related work item: #5804

Proposed solution

No response

Alternatives

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions