Skip to content

question: localhost vs 127.0.0.1 redirect URI #104

Open
@pawelofficial

Description

@pawelofficial

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions