Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Selecting Auth Backend

Avatar image for papaabramg

papaabramg on Feb. 23, 2025

Hello! When trying github login, it redirects to github.com/login/oauth/authorize?client_id=Ov23lihEbQPyS9tFWyuO&redirect_uri=https://127.0.0.1:8000/oauth/complete/github/&state=tPDqQOEKTfX0GB7kucmxDRJuXfJQNWf4&response_type=code

And github gives an error message: Be careful!

The redirect_uri is not associated with this application.

The application might be misconfigured or could be trying to redirect you to a website you weren’t expecting.

I understand it comes from redirect_uri=127.0.0.1:8000/oauth/complete/github/

Avatar image for papaabramg

papaabramg on Feb. 24, 2025

After set Github lback URL

127.0.0.1:8000/oauth/complete/github/

it worked. A comment above should habe been deleted but I can’t. Thank you.

Become a Member to join the conversation.