Skip to content

Commit c9cf423

Browse files
committed
fix: define social auth request timeout
1 parent 57d3ee7 commit c9cf423

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/project/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,10 @@
231231
# into account providers defined in database models.
232232
SOCIAL_AUTH_STRATEGY = 'dynamic_social_auth.strategy.DjangoModelStrategy'
233233

234+
# Set a timeout for upstream requests to auth providers (in seconds).
235+
# Note: 10 seconds is the default starting in social-auth-core 4.9.0.
236+
SOCIAL_AUTH_REQUESTS_TIMEOUT = 10
237+
234238
AUTH_USER_MODEL = 'sa_api_v2.User'
235239

236240
# TODO: Enable after Django 1.11 update # SOCIAL_AUTH_POSTGRES_JSONFIELD = True

0 commit comments

Comments
 (0)