Skip to content

Commit

Permalink
fix zotero
Browse files Browse the repository at this point in the history
  • Loading branch information
adlius committed Dec 15, 2024
1 parent b113401 commit 67a2fbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion osf/external/gravy_valet/translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class _LegacyConfigsForWBKey(enum.Enum):
onedrive = OneDriveAddonAppConfig
owncloud = OwnCloudAddonAppConfig
s3 = S3AddonAppConfig
zotero = ZoteroAddonAppConfig
zotero_org = ZoteroAddonAppConfig
mendeley = MendeleyAddonConfig


Expand Down
7 changes: 6 additions & 1 deletion website/oauth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,14 @@ def oauth_callback(service_name, auth):
def _forward_to_addon_service(oauth_version):
code = request.args.get('code')
state = request.args.get('state')
oauth_token = request.args.get('oauth_token')
oauth_verifier = request.args.get('oauth_verifier')
query_params = {
'code': code,
'state': state,
'oauth_token': oauth_token,
'oauth_verifier': oauth_verifier,
}

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)

0 comments on commit 67a2fbc

Please sign in to comment.