Skip to content

Commit

Permalink
Merge pull request #38 from maykinmedia/feature/oidc-settings
Browse files Browse the repository at this point in the history
🔧 Use the callback from mozilla-django-oidc-db
  • Loading branch information
stevenbal authored Jul 4, 2024
2 parents 5e5ebc5 + cf3895a commit 85da0a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions open_api_framework/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,10 @@ def init_sentry(before_send: Callable | None = None):
# Mozilla Django OIDC DB settings
#
OIDC_AUTHENTICATE_CLASS = "mozilla_django_oidc_db.views.OIDCAuthenticationRequestView"
# Use custom callback view to handle admin login error situations
# NOTE the AdminLoginFailure view for mozilla-django-oidc-db should be added to the projects
# urlpatterns to properly catch errors
OIDC_CALLBACK_CLASS = "mozilla_django_oidc_db.views.OIDCCallbackView"
MOZILLA_DJANGO_OIDC_DB_CACHE = "oidc"
MOZILLA_DJANGO_OIDC_DB_CACHE_TIMEOUT = 5 * 60

Expand Down

0 comments on commit 85da0a8

Please sign in to comment.