How to fix 'AADSTS900971: No reply address provided.' in MSAL Python

Jake Blum 0 Reputation points
2023-01-22T19:50:51.8466667+00:00

Hello there! I'm currently having some issues with MSAL Python where, when using acquire_token_interactive, I get an error that says "No reply address provided". This is odd, as the redirect is clearly configured with Auth0, as shown here in AAD:

Screen Shot 2023-01-22 at 2.45.17 PM

The code I am using is as follows (with specifics altered for privacy reasons). Any help would be much appreciated.

app = PublicClientApplication(
          'app_id',
          authority='https://login.microsoftonline.com/tenant_id'
      )   

token = None
token = app.acquire_token_interactive(scopes=['User.Read'])

if 'access_token' in token:
    return token['access_token']
    else:
        print(token.get("error"))
        print(token.get("error_description"))
        print(token.get("correlation_id"))
        exit(1)
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Shweta Mathur 30,296 Reputation points Microsoft Employee Moderator
    2023-01-30T08:20:11.3566667+00:00

    Hi @Jake Blum ,

    Thanks for reaching out.

    The error you are getting is due to redirect URL configured in Azure AD xxx.auth0.com/login/xxxx is missing or not correctly configured in your Python application configuration.

    Thanks,

    Shweta


    Please remember to "Accept Answer" if answer helped you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.