Skip to content

Commit

Permalink
use data instead of json payload
Browse files Browse the repository at this point in the history
  • Loading branch information
costrouc committed Aug 19, 2021
1 parent 5f34803 commit d622857
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions conda-store-server/conda_store_server/server/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,12 +482,11 @@ def _get_oauth_token(self, request):
# 2. Request actual access token with code and secret
r_response = requests.post(
self.access_token_url,
json={
data={
"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"},
)
Expand Down

0 comments on commit d622857

Please sign in to comment.