projects
/
twitter-api-cdsw
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added updated version of oauthlib
[twitter-api-cdsw]
/
oauthlib
/
oauth2
/
rfc6749
/
grant_types
/
client_credentials.py
diff --git
a/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py
b/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py
index 30df247a40e194efc7a780ad1276c9838c6205fd..49173cca4beeb8fd8ed321cac5b1b94f1d845e6c 100644
(file)
--- a/
oauthlib/oauth2/rfc6749/grant_types/client_credentials.py
+++ b/
oauthlib/oauth2/rfc6749/grant_types/client_credentials.py
@@
-83,7
+83,7
@@
class ClientCredentialsGrant(GrantTypeBase):
return headers, json.dumps(token), 200
def validate_token_request(self, request):
return headers, json.dumps(token), 200
def validate_token_request(self, request):
- if not getattr(request, 'grant_type'):
+ if not getattr(request, 'grant_type'
, None
):
raise errors.InvalidRequestError('Request is missing grant type.',
request=request)
raise errors.InvalidRequestError('Request is missing grant type.',
request=request)
Benjamin Mako Hill
||
Want to submit a patch?