Comments (3)
There is no reason why allauth would go looking for a provider called accounts
without that being configured somehow, unless the project's URL routing somehow mistakenly interprets the accounts
in your /en/accounts/login
as a provider ID. I would recommend you first use standard URL routing (e.g. don't auto prefix /en/
) and then figure out why things start breaking when you gradually expand from there...
from django-allauth.
Closing -- feel free to reopen if you have a reproducible scenario with an uncustomized allauth.
from django-allauth.
It's redirected to /en as it's a multilingual site. No site exists at /.
'accounts' isn't configured anywhere other than being a prefix for the allauth urls.
It's only on the login view, and only when OIDC is added to INSTALLED_APPS that this issue arises with or without an OIDC provider defined.
Your suggestion regarding the urls did lead me to find a duplicate path for allauth.urls
though:
urlpatterns = urlpatterns + i18n_patterns(
...
re_path(r'^accounts/', include('allauth.urls')),
...
re_path(r'', include('allauth.urls')),
...
)
When I take out the second, the error goes away. It was there for some historic reason I can only guess.
I couldn't track what calls with provider='accounts'
in the end. From searching and stepping through the code, it comes from the get_providers
& provider_login_url
templatetags, but these don't even get called when the error gets thrown. I can even see the error in the console when starting the server.
Anyway, thanks for the help, much appreciated!
from django-allauth.
Related Issues (20)
- Tests fail if `ACCOUNT_USER_MODEL_USERNAME_FIELD = None` HOT 2
- SAML username is generic HOT 4
- Temporarily disable MFA for a user HOT 3
- Doesn't support Android Credential Manager for Google login from Android HOT 4
- Does the MFA feature in django-allauth support FIDO passkeys? Or FIDO is simply handled by the chosen provider? HOT 1
- Is allauth open to including an (optional) honeypot field on registration? HOT 3
- Facebook Graph API v14 support HOT 1
- socialauth provider saml does not log OneLogin_Saml2_Error exceptions
- Social provider (Auth0) - not getting user's email address HOT 1
- SOCIALACCOUNT_PROVIDER nextcloud ignores settings HOT 8
- linkedin_oauth2 HOT 1
- IntegrityError on email change if user email field is unique HOT 3
- Lichess.org Provider Support HOT 1
- Github verified email does not seem to work HOT 2
- Option to allow one-time password login for old users when using SOCIALACCOUNT_ONLY HOT 1
- how to add support for SAML federations HOT 3
- headless api documentation HOT 2
- Microsoft Login (Social Account) HOT 1
- 0.62.0: Contains site-packages/tests directory HOT 1
- admin confirmation after email confirmation HOT 3
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.