Skip to content

Getting "Unable to get authority configuration" Error when Authority is properly sent #263

@AlmogBentz

Description

@AlmogBentz

Describe the bug
We are using MSAL in production environment in out first party application.
we are using ConfidentialClientApplication with certificate.

in the logs I see this error popping up:
"ValueError: Unable to get authority configuration for https://login.microsoftonline.com/. Authority would typically be in a format of https://login.microsoftonline.com/your_tenant_name"
(I removed the AAD context id for privacy here)

for exactly the same context-id from AAD the same request with the same authority url can pass multiple times and then randomly fail with the same message.

Expected behavior
if this is an error that is not caused by the authority url input but by something else the message returned should be different.
we need to be able to differentiate the types of errors, so that if this is caused by something transient we can ignore it.

The MSAL Python version you are using
msal version is 1.5.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions