Comments (2)
This is possible, though the process is not documented as this mechanism is likely subject to change. Should that happen it will be noted in the changeog, so feel free to use it as is.
You can do the following: create your own module example.provider
, containing:
from allauth.socialaccount.providers.amazon_cognito.provider import AmazonCognitoProvider
class CustomAmazonCognitoProvider(AmazonCognitoProvider):
package = "allauth.socialaccount.providers.amazon_cognito"
def extract_extra_data(self, data):
...
Then, in your settings.py:
"amazon_cognito": {
"APP": {
"client_id": "...",
"secret": "...",
},
"provider_class": "example.provider.CustomAmazonCognitoProvider",
from django-allauth.
This is possible, though the process is not documented as this mechanism is likely subject to change. Should that happen it will be noted in the changeog, so feel free to use it as is.
You can do the following: create your own module
example.provider
, containing:from allauth.socialaccount.providers.amazon_cognito.provider import AmazonCognitoProvider
class CustomAmazonCognitoProvider(AmazonCognitoProvider): package = "allauth.socialaccount.providers.amazon_cognito" def extract_extra_data(self, data): ...
Then, in your settings.py:
"amazon_cognito": { "APP": { "client_id": "...", "secret": "...", }, "provider_class": "example.provider.CustomAmazonCognitoProvider",
Thanks, it works as expected!
from django-allauth.
Related Issues (20)
- [tox] Can't find msgfmt HOT 2
- ModuleNotFoundError: No module named 'user' HOT 2
- 2FA Setup - QR Code/Secret Key Invalidation on Incorrect Token Entry HOT 3
- login_required CBV consistency HOT 1
- Signing up new users, facing username duplicate errors (0.61.1) HOT 10
- Regular accounts only HOT 1
- Get id_token for send to the URL logout keycloak
- Initial value for the SignUpForm
- what is `by_id()` replaced with? HOT 1
- Wrong 'da' translation of "Password Reset Email" /locale/da/LC_MESSAGES /django.po HOT 1
- Microsoft provider does not have extract_email_addresses function defined HOT 1
- TikTok provider needed HOT 5
- keep getting error retrieving access token for microsoft oauth and using 0.61.1 HOT 3
- About old version Document. HOT 1
- Password reset from key (email) issue - invalid link - solved HOT 2
- typo in `authentication_required` in headless RESTView HOT 1
- How to use my custom model instead of django user model?
- Closing -- see SOCIALACCOUNT_EMAIL_AUTHENTICATION. HOT 4
- Tests fail if `ACCOUNT_USER_MODEL_USERNAME_FIELD = None` HOT 2
- SAML username is generic HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-allauth.