#what should my callback url be?

6 messages · Page 1 of 1 (latest)

candid kraken
#

i'm following the official example here:

from allauth.socialaccount.providers.github.views import GitHubOAuth2Adapter
from allauth.socialaccount.providers.oauth2.client import OAuth2Client
from dj_rest_auth.registration.views import SocialLoginView

class GitHubLogin(SocialLoginView):
    adapter_class = GitHubOAuth2Adapter
    callback_url = CALLBACK_URL_YOU_SET_ON_GITHUB
    client_class = OAuth2Client
```but i have no clue what the callback url should be
runic orbit
candid kraken
runic orbit
#

I could be wrong as I'm not sure what I used, and don't currently have access to the repo I last used DRF with OAuth, but I remember needing some URL to redirect to after the external provider validates the user.

#

I think I used socialauth, not allauth, but the principle should be similar