Skip to content

Commit ef5d5ad

Browse files
committed
fix: do not use blank ID_KEY
1 parent 82681b8 commit ef5d5ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

social_core/backends/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class BaseAuth:
2121

2222
name = "" # provider name, it's stored in database
2323
supports_inactive_user = False # Django auth
24-
ID_KEY: str
24+
ID_KEY: str = ""
2525
EXTRA_DATA: list[str | tuple[str, str] | tuple[str, str, bool]] | None = None
2626
GET_ALL_EXTRA_DATA = False
2727
REQUIRES_EMAIL_VALIDATION = False

social_core/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def partial_pipeline_data(backend, user=None, partial_token=None, *args, **kwarg
177177
# Normally when resuming a pipeline, request_data will be empty. We
178178
# only need to check for a uid match if new data was provided (i.e.
179179
# if current request specifies the ID_KEY).
180-
if backend.ID_KEY in request_data:
180+
if backend.ID_KEY and backend.ID_KEY in request_data:
181181
id_from_partial = partial.kwargs.get("uid")
182182
id_from_request = request_data.get(backend.ID_KEY)
183183

0 commit comments

Comments
 (0)