invalid_request: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application.

Avin Mathew 1 Reputation point

I am creating a Single Sign-On(SSO) with the help of Azure AD and Django. I am using


I followed the tutorial on

but i am getting this error when i try to login with the register email id after completeing the 10 steps

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
16,701 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 32,856 Reputation points Microsoft Employee

    @Avin Mathew
    Thank you for your post!

    Can you make sure the Redirect URI value that you added to your app, within step 3 is the same as within your app.

    If you added more URIs within step 5 and 6, can you make sure they're also saved to your app's redirect URI list.
    For more info - Redirect URI (reply URL) restrictions and limitations

    Since this is a Django doc that you referenced, you can also try reaching out to the Django Community Forums.

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.


    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.