Skip to content

Commit 17b7a70

Browse files
committed
Merge branch 'main' of github.com:drycc/controller into main
2 parents 3fe13f4 + 04b7eee commit 17b7a70

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

rootfs/api/apps_extra/social_core/actions.py

-4
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ def do_complete(backend, login, user=None, redirect_name='next',
112112
response = backend.strategy.redirect(url)
113113
social_auth = user.social_auth.filter(provider='drycc').\
114114
order_by('-modified').last()
115-
response.set_cookie("name", user.username,
116-
max_age=social_auth.extra_data.get('expires_in'))
117-
response.set_cookie("id_token", social_auth.extra_data.get('id_token'),
118-
max_age=social_auth.extra_data.get('expires_in'))
119115
from django.core.cache import cache
120116
cache.set("oidc_state_" + data.get('state'),
121117
{'token': social_auth.extra_data.get('id_token', 'fail'),

rootfs/api/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def auth(request, backend):
7777
@psa('{0}:complete'.format(NAMESPACE))
7878
def complete(request, backend, *args, **kwargs):
7979
"""Authentication complete view"""
80-
return do_complete(request.backend, _do_login, user=request.user,
80+
return do_complete(request.backend, _do_login, user=None,
8181
redirect_name=REDIRECT_FIELD_NAME, request=request,
8282
*args, **kwargs)
8383

0 commit comments

Comments
 (0)