1

I try to use the quickstart of sign-in with Microsoft but when I try to log an error appear:

Error

in my config file i have this parameters:

config file

and in the app config i have this paramter:

redirect url

i dont know what is happening :(

Thanks for the help! :D

Md Farid Uddin Kiron
  • 16,817
  • 3
  • 17
  • 43
Reco Jhonatan
  • 1,503
  • 4
  • 23
  • 35

2 Answers2

1

Your Redirect_Path should be same with azure portal Redirect URIs.

enter image description here

Note: Protocol matters. AAD will treat http://localhost/logfinal/ and https://localhost/logfinal/ as different reply URLs. If you are still having an issue after following the steps above, check that the configured reply URL matches the protocol you're actually using.

Hope this would help. Additionally, please refer to Official document for more details.

Md Farid Uddin Kiron
  • 16,817
  • 3
  • 17
  • 43
  • "Note: Port 5000 is not recommended by Microsoft. You should better to change the port from 5000 to the effective one."? Citation needed. – RayLuo Dec 17 '20 at 23:16
  • @RayLuo Done, Thanks for the suggestion. – Md Farid Uddin Kiron Dec 18 '20 at 05:41
  • Sorry but, by "citation needed", I did NOT mean just to add a quoting visual effect. I mean, it would better to leave an official document which says "port 5000 is not recommended". I cannot find it from the official document. Are you sure you read such statement from Microsoft doc? – RayLuo Dec 18 '20 at 09:17
  • Ah, I see! its hard for me to remember that one as its bit late since I have answered, I am trying to update with specific link. – Md Farid Uddin Kiron Dec 18 '20 at 10:07
  • Actually, I am not aware of a technological reason to recommend against port 5000. If your effective port happens to be 5000, then you should just go for it. – RayLuo Dec 19 '20 at 09:04
  • I have updated the answer with removing that part, I would update that once I get the reference again. When I write code I and god knows after a long time only god knows! I depend mostly on my comment and docs I share with the content writing team. – Md Farid Uddin Kiron Dec 21 '20 at 08:22
0

I encountered the same error. For me, the issue was that I was navigating to url that flask provides when it starts: http://127.0.0.1:5000/login rather than http://localhost:5000/login which is the url that the app registration is looking for.

Gib
  • 16
  • 2