Skip to content
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

log cookies to sentry for debug to see if osf is getting the correct cookies #10867

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions website/oauth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from api.waffle.utils import flag_is_active
from framework.auth.decorators import must_be_logged_in
from framework.exceptions import HTTPError
from framework import sentry
from osf.models import ExternalAccount
from osf import features
from website.oauth.utils import get_service
Expand Down Expand Up @@ -83,4 +84,5 @@ def _forward_to_addon_service(oauth_version):
}

gv_url = urlunparse(urlparse(GRAVYVALET_URL)._replace(path=f'/v1/{oauth_version}/callback', query=urlencode(query_params)))
sentry.log_message(request.cookies)
requests.get(gv_url, cookies=request.cookies)
Loading