We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When trying to get a JWT token via "convert-token" the response is an error "Your credentials aren't allowed"
Send a request to receive a token on convert-token
settings.py:
INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', # REST 'rest_framework', # AUTH 'oauth2_provider', 'social_django', 'drf_social_oauth2', ] # AUTH AUTH_USER_MODEL = 'account.CustomUser' REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'oauth2_provider.contrib.rest_framework.OAuth2Authentication', 'drf_social_oauth2.authentication.SocialAuthentication', ), } AUTHENTICATION_BACKENDS = ( 'social_core.backends.discord.DiscordOAuth2', 'drf_social_oauth2.backends.DjangoOAuth2', 'django.contrib.auth.backends.ModelBackend', ) SOCIAL_AUTH_DISCORD_KEY = '***' SOCIAL_AUTH_DISCORD_SECRET = '***' SOCIAL_AUTH_DISCORD_SCOPE = ["identify", "email"] ACTIVATE_JWT = True
Application DB:
The text was updated successfully, but these errors were encountered:
Does your account.CustomUser model by default have is_active as false, if that is the case that can happen.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
When trying to get a JWT token via "convert-token" the response is an error "Your credentials aren't allowed"
To Reproduce
Send a request to receive a token on convert-token
Screenshots
Project
settings.py:
Application DB:
![image](https://private-user-images.githubusercontent.com/101012824/320589929-e575fc63-2798-40bb-84e0-36ada63806c3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMzMzNjcsIm5iZiI6MTczOTIzMzA2NywicGF0aCI6Ii8xMDEwMTI4MjQvMzIwNTg5OTI5LWU1NzVmYzYzLTI3OTgtNDBiYi04NGUwLTM2YWRhNjM4MDZjMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQwMDE3NDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00Yjk5NDFkMzFmOThmMjRmMTU1MGVlNTk4ZDkyYTZhYzgyZjJmNWU0OThlZGMxYzRjZDIzZjEzMDZmNzVjOTUxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.9ue_UCufbYhgLO0we5tduCEwdxhwLvlp_2V-wYbZIn4)
The text was updated successfully, but these errors were encountered: