Skip to content

Commit

Permalink
Merge pull request #189 from girder/add-allauth-middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhelba committed Oct 24, 2023
2 parents 8f99b84 + 7c26b58 commit e89083f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions composed_configuration/_allauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def mutate_configuration(configuration: Type[ComposedConfiguration]) -> None:
# auth_style should come before others, to ensure its template overrides are found
configuration.INSTALLED_APPS.insert(0, 'auth_style')

configuration.MIDDLEWARE += [
'allauth.account.middleware.AccountMiddleware',
]

# The sites framework requires this to be set.
# In the unlikely case where a database's pk sequence for the django_site table is not reset,
# the default site object could have a different pk. Then this will need to be overridden
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

_base_extras = [
'django>=4',
'django-allauth',
# Required for "allauth.account.middleware.AccountMiddleware"
'django-allauth>=0.56.0',
'django-auth-style',
'django-cors-headers',
'django-extensions',
Expand Down

0 comments on commit e89083f

Please sign in to comment.