Skip to content

Commit

Permalink
Merge pull request #84 from jgayfer/encode-scope
Browse files Browse the repository at this point in the history
Encode scope when building authorization URI
  • Loading branch information
omarryhan authored Dec 30, 2021
2 parents 19340d8 + 0ac41f8 commit 8654d86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aiogoogle/auth/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,10 @@ def authorization_url(
scopes = " ".join(scopes or client_creds["scopes"])
uri = (
self["authorization_endpoint"]
+ f'?redirect_uri={client_creds["redirect_uri"]}&scope={scopes}&'
+ f'?redirect_uri={client_creds["redirect_uri"]}&'
)
for param_name, param in {
"scope": scopes,
"client_id": client_creds["client_id"],
"response_type": response_type,
"state": state,
Expand Down

0 comments on commit 8654d86

Please sign in to comment.