From 5f3480309b39204211d80588332eed5a4b6e3d16 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 18 Aug 2021 23:15:27 -0400 Subject: [PATCH] making request of grant type authorization_code --- conda-store-server/conda_store_server/server/auth.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conda-store-server/conda_store_server/server/auth.py b/conda-store-server/conda_store_server/server/auth.py index 246c48a04..b6071d3bb 100644 --- a/conda-store-server/conda_store_server/server/auth.py +++ b/conda-store-server/conda_store_server/server/auth.py @@ -484,12 +484,14 @@ def _get_oauth_token(self, request): self.access_token_url, json={ "code": code, + "grant_type": 'authorization_code', "client_id": self.client_id, "client_secret": self.client_secret, + "redirect_uri": url_for("post_login_method", _external=True), }, headers={"Accept": "application/json"}, ) - print(r_response.content) + raise ValueError(r_response.content) r_response.raise_for_status() data = r_response.json() if "error" in data: