I followed the instructions in that file, but kept seeing Error 400: redirect_uri_mismatch in my browser, instead of the home page that I expected.
To Reproduce
Just follow the instructions in that README exactly. In particular, ensure that the URL that you enter into https://console.cloud.google.com/apis/credentials ends with a slash, like it says in the README.
Expected behavior
When I visited http://127.0.0.1:5000/login in my browser, I expected to see the example site's home page, with a json blob at the top of the page.
Environment:
OS: MacOS
Python Version: 3.11.4
Authlib Version: 1.2.1
Flask Version: 2.3.2
Additional context
I removed the trailing slash from the URL in the google cloud console and tried again, and now it works 🎉. I don't know why it didn't work before, but I wonder if the behavior of flask's url_for function has changed -- it now appends a /, but perhaps before, when this demo was written, it didn't.
Describe the bug
I followed the instructions in that file, but kept seeing
Error 400: redirect_uri_mismatch
in my browser, instead of the home page that I expected.To Reproduce
Just follow the instructions in that README exactly. In particular, ensure that the URL that you enter into https://console.cloud.google.com/apis/credentials ends with a slash, like it says in the README.
Expected behavior
When I visited http://127.0.0.1:5000/login in my browser, I expected to see the example site's home page, with a json blob at the top of the page.
Environment:
Additional context
I removed the trailing slash from the URL in the google cloud console and tried again, and now it works 🎉. I don't know why it didn't work before, but I wonder if the behavior of flask's
url_for
function has changed -- it now appends a/
, but perhaps before, when this demo was written, it didn't.