-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENG-6731] Fix zotero connection #10854
[ENG-6731] Fix zotero connection #10854
Conversation
'oauth_token': oauth_token, | ||
'oauth_verifier': oauth_verifier, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to forward these oauth1a specific query params to GV
gv_url = urlunparse(urlparse(GRAVYVALET_URL)._replace(path=f'/v1/{oauth_version}/callback', query=urlencode(query_params))) | ||
requests.get(gv_url) | ||
requests.get(gv_url, cookies=request.cookies) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oauth1a process on GV side make use of sessions to store oauth1a_accound_id
in between requests. Therefore we need to forward the cookies to GV upon callback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good other than test failures.
=================================== FAILURES ===================================
______________ TestBitbucketAuthViews.test_oauth_finish_enable_gv ______________
addons/base/tests/views.py:93: in test_oauth_finish_enable_gv
assert dict(parse_qsl(parsed_callback_url.query)) == query_params
E AssertionError
__________________ TestAuthViews.test_oauth_finish_enable_gv ___________________
addons/base/tests/views.py:93: in test_oauth_finish_enable_gv
assert dict(parse_qsl(parsed_callback_url.query)) == query_params
E AssertionError
__________________ TestAuthViews.test_oauth_finish_enable_gv ___________________
addons/base/tests/views.py:93: in test_oauth_finish_enable_gv
assert dict(parse_qsl(parsed_callback_url.query)) == query_params
E AssertionError
__________________ TestAuthViews.test_oauth_finish_enable_gv ___________________
addons/base/tests/views.py:93: in test_oauth_finish_enable_gv
assert dict(parse_qsl(parsed_callback_url.query)) == query_params
E AssertionError
_______________ TestGitHubAuthViews.test_oauth_finish_enable_gv ________________
addons/base/tests/views.py:93: in test_oauth_finish_enable_gv
assert dict(parse_qsl(parsed_callback_url.query)) == query_params
E AssertionError
__________________ TestAuthViews.test_oauth_finish_enable_gv ___________________
addons/base/tests/views.py:93: in test_oauth_finish_enable_gv
assert dict(parse_qsl(parsed_callback_url.query)) == query_params
E AssertionError
__________________ TestAuthViews.test_oauth_finish_enable_gv ___________________
addons/base/tests/views.py:93: in test_oauth_finish_enable_gv
assert dict(parse_qsl(parsed_callback_url.query)) == query_params
E AssertionError
__________________ TestAuthViews.test_oauth_finish_enable_gv ___________________
addons/base/tests/views.py:93: in test_oauth_finish_enable_gv
assert dict(parse_qsl(parsed_callback_url.query)) == query_params
E AssertionError
__________________ TestAuthViews.test_oauth_finish_enable_gv ___________________
addons/base/tests/views.py:93: in test_oauth_finish_enable_gv
assert dict(parse_qsl(parsed_callback_url.query)) == query_params
E AssertionError
=============================== warnings summary ===============================
b2f1a2b
into
CenterForOpenScience:feature/gravy_valet_integration
Purpose
Changes
QA Notes
Please make verification statements inspired by your code and what your code touches.
What are the areas of risk?
Any concerns/considerations/questions that development raised?
Documentation
Side Effects
Ticket