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

question: localhost vs 127.0.0.1 redirect URI

Đang mở
#104 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
PowerShell
Star
324
Fork
145
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.