Skip to content

Commit

Permalink
making request of grant type authorization_code
Browse files Browse the repository at this point in the history
  • Loading branch information
costrouc committed Aug 19, 2021
1 parent 46fd1dd commit 5f34803
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion conda-store-server/conda_store_server/server/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5f34803

Please sign in to comment.