Azure-Samples / Azure-Samples/ms-identity-python-webapp

question: localhost vs 127.0.0.1 redirect URI

Open
#104 6 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
PowerShell
Stars
324
Forks
145
PR merge metrics
No merged PRs in 30d

Description

hi, this is my first time opening an issue so i apologize in advance for it's quality. Nevertheless i am following
https://learn.microsoft.com/en-us/azure/active-directory-b2c/configure-authentication-sample-python-web-app
tutorial and my redirect URI didn't match in step 5.4, exact message from flask:
GET /getAToken.?error=redirect_uri_mismatch&error_description=AADB2C90006:+The+redirect+URI+'http://127.0.0.1:5000/getAToken'+provided+in+the+request+is+not+registered+for+the+client+id+'xxx-xx-xx-xx-xx'.%0d%0aCorrelation+ID:+xxx-xxx-xxx-xx-xxx%0d%0aTimestamp:+2023-05-03+10:03:02Z%0d%0a&state=jsaKCDnFuqMGzkrL

and when i hardcoded the redirect_uri in login route to "http://localhost:5000/getAToken."
it worked.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.