We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bec95b commit 17bba2cCopy full SHA for 17bba2c
msal/oauth2.py
@@ -51,6 +51,7 @@ def authorization_url(self,
51
'state': state,
52
}
53
params.update(kwargs)
54
+ params = {k: v for k, v in params.items() if v is not None} # clean up
55
return "%s%s%s" % (self.authorization_endpoint, sep, urlencode(params))
56
57
def get_token(
@@ -64,6 +65,7 @@ def get_token(
64
65
'client_id': self.client_id, 'grant_type': grant_type,
66
'scope': scope}
67
data.update(kwargs)
68
+ # We don't need to clean up None values here, because requests lib will.
69
70
# Quoted from https://tools.ietf.org/html/rfc6749#section-2.3.1
71
# Clients in possession of a client password MAY use the HTTP Basic
0 commit comments