summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Huot <jonathan.huot@thomsonreuters.com>2018-12-13 16:05:29 +0100
committerJonathan Huot <jonathan.huot@thomsonreuters.com>2018-12-13 16:05:29 +0100
commit1a7be4eebb11cd5224c3b6eaf1782e8add5bd8d9 (patch)
tree310d967c5d2a2b3ddbe470f3e523349a25bb9012
parentd0640038a84f60b37864cf585fd764f9ee34b1c4 (diff)
downloadoauthlib-1a7be4eebb11cd5224c3b6eaf1782e8add5bd8d9.tar.gz
Replace temporary list by using clearer "extend" method
-rw-r--r--oauthlib/oauth2/rfc6749/endpoints/metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oauthlib/oauth2/rfc6749/endpoints/metadata.py b/oauthlib/oauth2/rfc6749/endpoints/metadata.py
index 84ddf8f..fe6545f 100644
--- a/oauthlib/oauth2/rfc6749/endpoints/metadata.py
+++ b/oauthlib/oauth2/rfc6749/endpoints/metadata.py
@@ -89,7 +89,7 @@ class MetadataEndpoint(BaseEndpoint):
raise ValueError("array {}: {} must contains only string (not {})".format(key, array[key], elem))
def validate_metadata_token(self, claims, endpoint):
- self._grant_types += list(endpoint._grant_types.keys())
+ self._grant_types.extend(endpoint._grant_types.keys())
claims.setdefault("token_endpoint_auth_methods_supported", ["client_secret_post", "client_secret_basic"])
self.validate_metadata(claims, "token_endpoint_auth_methods_supported", is_list=True)