Module ImportFrom alias alias ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str NameLoad NameLoad Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str AugAssignAdd NameStore Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list Call AttributeLoad NameLoad attr Str keyword Lambda arguments args defaults Str FunctionDef arguments args NameParam defaults body Assign NameStore Str AugAssignAdd NameStore Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpAdd BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Str keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Lambda arguments args defaults Str FunctionDef arguments args NameParam defaults body Assign NameStore Str AugAssignAdd NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str AugAssignAdd NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Dict Str Str Str Str Str Str AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Lambda arguments args defaults Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Dict Str Str Str Str Str Str AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Lambda arguments args defaults Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Dict Str Str Str Str Str AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Lambda arguments args defaults Str FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str Str AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Lambda arguments args defaults Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str Str AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Lambda arguments args defaults Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list Call AttributeLoad NameLoad attr Str keyword Lambda arguments args defaults Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Lambda arguments args defaults Str FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword Str keyword Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list
N/A __future__ absolute_import unicode_literals unittest TestCase N/A json N/A jwt N/A mock oauthlib common oauthlib.oauth2.rfc6749.endpoints Server oauthlib.oauth2.rfc6749.endpoints.authorization AuthorizationEndpoint oauthlib.oauth2.rfc6749.endpoints.token TokenEndpoint oauthlib.oauth2.rfc6749.endpoints.resource ResourceEndpoint oauthlib.oauth2.rfc6749.grant_types AuthorizationCodeGrant oauthlib.oauth2.rfc6749.grant_types ImplicitGrant oauthlib.oauth2.rfc6749.grant_types ResourceOwnerPasswordCredentialsGrant oauthlib.oauth2.rfc6749.grant_types ClientCredentialsGrant oauthlib.oauth2.rfc6749 tokens errors AuthorizationEndpointTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self mock_validator N/A N/A mock MagicMock N/A N/A N/A self addCleanup setattr self mock_validator N/A N/A mock MagicMock N/A auth_code N/A AuthorizationCodeGrant request_validator N/A self mock_validator N/A N/A auth_code save_authorization_code N/A N/A mock MagicMock N/A implicit N/A ImplicitGrant request_validator N/A self mock_validator N/A N/A implicit save_token N/A N/A mock MagicMock N/A response_types N/A code token auth_code implicit N/A N/A self expires_in 1800 N/A token N/A N/A tokens BearerToken N/A self mock_validator expires_in N/A self expires_in N/A N/A self endpoint N/A AuthorizationEndpoint default_response_type code default_token_type token response_types response_types N/A test_authorization_grant N/A N/A self N/A N/A N/A uri http://i.b/l?response_type=code&client_id=me&scope=all+of+them&state=xyz N/A uri &redirect_uri=http%3A%2F%2Fback.to%2Fme N/A N/A headers body status_code N/A N/A N/A self endpoint create_authorization_response uri scopes N/A all of them N/A N/A N/A self assertIn Location headers N/A N/A N/A self assertURLEqual N/A headers N/A Location http://back.to/me?code=abc&state=xyz N/A N/A N/A mock patch oauthlib.common.generate_token new N/A N/A N/A N/A abc test_implicit_grant N/A N/A self N/A N/A N/A uri http://i.b/l?response_type=token&client_id=me&scope=all+of+them&state=xyz N/A uri &redirect_uri=http%3A%2F%2Fback.to%2Fme N/A N/A headers body status_code N/A N/A N/A self endpoint create_authorization_response uri scopes N/A all of them N/A N/A N/A self assertIn Location headers N/A N/A N/A self assertURLEqual N/A headers N/A Location N/A N/A http://back.to/me#access_token=abc&expires_in= N/A str N/A self expires_in &token_type=Bearer&state=xyz&scope=all+of+them parse_fragment True N/A N/A N/A mock patch oauthlib.common.generate_token new N/A N/A N/A N/A abc test_missing_type N/A N/A self N/A N/A N/A uri http://i.b/l?client_id=me&scope=all+of+them N/A uri &redirect_uri=http%3A%2F%2Fback.to%2Fme N/A N/A N/A self mock_validator validate_request N/A N/A mock MagicMock side_effect N/A N/A errors InvalidRequestError N/A N/A headers body status_code N/A N/A N/A self endpoint create_authorization_response uri scopes N/A all of them N/A N/A N/A self assertIn Location headers N/A N/A N/A self assertURLEqual N/A headers N/A Location http://back.to/me?error=invalid_request&error_description=Missing+response_type+parameter. N/A test_invalid_type N/A N/A self N/A N/A N/A uri http://i.b/l?response_type=invalid&client_id=me&scope=all+of+them N/A uri &redirect_uri=http%3A%2F%2Fback.to%2Fme N/A N/A N/A self mock_validator validate_request N/A N/A mock MagicMock side_effect N/A N/A errors UnsupportedResponseTypeError N/A N/A headers body status_code N/A N/A N/A self endpoint create_authorization_response uri scopes N/A all of them N/A N/A N/A self assertIn Location headers N/A N/A N/A self assertURLEqual N/A headers N/A Location http://back.to/me?error=unsupported_response_type N/A N/A TokenEndpointTest N/A TestCase N/A setUp N/A N/A self N/A N/A set_user N/A N/A request N/A N/A N/A N/A request user N/A N/A mock MagicMock N/A N/A request client N/A N/A mock MagicMock N/A N/A N/A request client client_id mocked_client_id N/A True N/A N/A N/A self mock_validator N/A N/A mock MagicMock N/A N/A N/A N/A self mock_validator authenticate_client side_effect set_user N/A N/A N/A self addCleanup setattr self mock_validator N/A N/A mock MagicMock N/A auth_code N/A AuthorizationCodeGrant request_validator N/A self mock_validator N/A password N/A ResourceOwnerPasswordCredentialsGrant request_validator N/A self mock_validator N/A client N/A ClientCredentialsGrant request_validator N/A self mock_validator N/A supported_types N/A authorization_code password client_credentials auth_code password client N/A N/A self expires_in 1800 N/A token N/A N/A tokens BearerToken N/A self mock_validator expires_in N/A self expires_in N/A N/A self endpoint N/A TokenEndpoint authorization_code default_token_type token grant_types supported_types N/A test_authorization_grant N/A N/A self N/A N/A N/A body grant_type=authorization_code&code=abc&scope=all+of+them&state=xyz N/A N/A headers body status_code N/A N/A N/A self endpoint create_token_response body body N/A token N/A token_type expires_in access_token refresh_token state Bearer N/A self expires_in abc abc xyz N/A N/A N/A self assertEqual N/A N/A json loads body token N/A N/A N/A mock patch oauthlib.common.generate_token new N/A N/A N/A N/A abc test_password_grant N/A N/A self N/A N/A N/A body grant_type=password&username=a&password=hello&scope=all+of+them N/A N/A headers body status_code N/A N/A N/A self endpoint create_token_response body body N/A token N/A token_type expires_in access_token refresh_token scope Bearer N/A self expires_in abc abc all of them N/A N/A N/A self assertEqual N/A N/A json loads body token N/A N/A N/A mock patch oauthlib.common.generate_token new N/A N/A N/A N/A abc test_client_grant N/A N/A self N/A N/A N/A body grant_type=client_credentials&scope=all+of+them N/A N/A headers body status_code N/A N/A N/A self endpoint create_token_response body body N/A token N/A token_type expires_in access_token scope Bearer N/A self expires_in abc all of them N/A N/A N/A self assertEqual N/A N/A json loads body token N/A N/A N/A mock patch oauthlib.common.generate_token new N/A N/A N/A N/A abc test_missing_type N/A N/A self N/A N/A N/A N/A _ body _ N/A N/A N/A self endpoint create_token_response body N/A token N/A error unsupported_grant_type N/A N/A N/A self assertEqual N/A N/A json loads body token N/A test_invalid_type N/A N/A self N/A N/A N/A body grant_type=invalid N/A N/A _ body _ N/A N/A N/A self endpoint create_token_response body body N/A token N/A error unsupported_grant_type N/A N/A N/A self assertEqual N/A N/A json loads body token N/A N/A SignedTokenEndpointTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self expires_in 1800 set_user N/A N/A request N/A N/A N/A N/A request user N/A N/A mock MagicMock N/A N/A request client N/A N/A mock MagicMock N/A N/A N/A request client client_id mocked_client_id N/A True N/A N/A N/A self mock_validator N/A N/A mock MagicMock N/A N/A N/A N/A self mock_validator authenticate_client side_effect set_user N/A N/A N/A self addCleanup setattr self mock_validator N/A N/A mock MagicMock N/A N/A self private_pem 
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA6TtDhWGwzEOWZP6m/zHoZnAPLABfetvoMPmxPGjFjtDuMRPv
EvI1sbixZBjBtdnc5rTtHUUQ25Am3JzwPRGo5laMGbj1pPyCPxlVi9LK82HQNX0B
YK7tZtVfDHElQA7F4v3j9d3rad4O9/n+lyGIQ0tT7yQcBm2A8FEaP0bZYCLMjwMN
WfaVLE8eXHyv+MfpNNLI9wttLxygKYM48I3NwsFuJgOa/KuodXaAmf8pJnx8t1Wn
nxvaYXFiUn/TxmhM/qhemPa6+0nqq+aWV5eT7xn4K/ghLgNs09v6Yge0pmPl9Oz+
+bjJ+aKRnAmwCOY8/5U5EilAiUOeBoO9+8OXtwIDAQABAoIBAGFTTbXXMkPK4HN8
oItVdDlrAanG7hECuz3UtFUVE3upS/xG6TjqweVLwRqYCh2ssDXFwjy4mXRGDzF4
e/e/6s9Txlrlh/w1MtTJ6ZzTdcViR9RKOczysjZ7S5KRlI3KnGFAuWPcG2SuOWjZ
dZfzcj1Crd/ZHajBAVFHRsCo/ATVNKbTRprFfb27xKpQ2BwH/GG781sLE3ZVNIhs
aRRaED4622kI1E/WXws2qQMqbFKzo0m1tPbLb3Z89WgZJ/tRQwuDype1Vfm7k6oX
xfbp3948qSe/yWKRlMoPkleji/WxPkSIalzWSAi9ziN/0Uzhe65FURgrfHL3XR1A
B8UR+aECgYEA7NPQZV4cAikk02Hv65JgISofqV49P8MbLXk8sdnI1n7Mj10TgzU3
lyQGDEX4hqvT0bTXe4KAOxQZx9wumu05ejfzhdtSsEm6ptGHyCdmYDQeV0C/pxDX
JNCK8XgMku2370XG0AnyBCT7NGlgtDcNCQufcesF2gEuoKiXg6Zjo7sCgYEA/Bzs
9fWGZZnSsMSBSW2OYbFuhF3Fne0HcxXQHipl0Rujc/9g0nccwqKGizn4fGOE7a8F
usQgJoeGcinL7E9OEP/uQ9VX1C9RNVjIxP1O5/Guw1zjxQQYetOvbPhN2QhD1Ye7
0TRKrW1BapcjwLpFQlVg1ZeTPOi5lv24W/wX9jUCgYEAkrMSX/hPuTbrTNVZ3L6r
NV/2hN+PaTPeXei/pBuXwOaCqDurnpcUfFcgN/IP5LwDVd+Dq0pHTFFDNv45EFbq
R77o5n3ZVsIVEMiyJ1XgoK8oLDw7e61+15smtjT69Piz+09pu+ytMcwGn4y3Dmsb
dALzHYnL8iLRU0ubrz0ec4kCgYAJiVKRTzNBPptQom49h85d9ac3jJCAE8o3WTjh
Gzt0uHXrWlqgO280EY/DTnMOyXjqwLcXxHlu26uDP/99tdY/IF8z46sJ1KxetzgI
84f7kBHLRAU9m5UNeFpnZdEUB5MBTbwWAsNcYgiabpMkpCcghjg+fBhOsoLqqjhC
CnwhjQKBgQDkv0QTdyBU84TE8J0XY3eLQwXbrvG2yD5A2ntN3PyxGEneX5WTJGMZ
xJxwaFYQiDS3b9E7b8Q5dg8qa5Y1+epdhx3cuQAWPm+AoHKshDfbRve4txBDQAqh
c6MxSWgsa+2Ld5SWSNbGtpPcmEM3Fl5ttMCNCKtNc0UE16oHwaPAIw==
-----END RSA PRIVATE KEY-----
         N/A N/A self public_pem 
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6TtDhWGwzEOWZP6m/zHo
ZnAPLABfetvoMPmxPGjFjtDuMRPvEvI1sbixZBjBtdnc5rTtHUUQ25Am3JzwPRGo
5laMGbj1pPyCPxlVi9LK82HQNX0BYK7tZtVfDHElQA7F4v3j9d3rad4O9/n+lyGI
Q0tT7yQcBm2A8FEaP0bZYCLMjwMNWfaVLE8eXHyv+MfpNNLI9wttLxygKYM48I3N
wsFuJgOa/KuodXaAmf8pJnx8t1WnnxvaYXFiUn/TxmhM/qhemPa6+0nqq+aWV5eT
7xn4K/ghLgNs09v6Yge0pmPl9Oz++bjJ+aKRnAmwCOY8/5U5EilAiUOeBoO9+8OX
twIDAQAB
-----END PUBLIC KEY-----
         N/A signed_token N/A N/A tokens signed_token_generator N/A self private_pem user_id 123 N/A N/A self endpoint N/A Server N/A self mock_validator token_expires_in N/A self expires_in token_generator signed_token refresh_token_generator N/A tokens random_token_generator N/A test_authorization_grant N/A N/A self N/A N/A N/A body grant_type=authorization_code&code=abc&scope=all+of+them&state=xyz N/A N/A headers body status_code N/A N/A N/A self endpoint create_token_response body body N/A body N/A N/A json loads body N/A token N/A token_type expires_in access_token refresh_token state Bearer N/A self expires_in N/A body N/A access_token abc xyz N/A N/A N/A self assertEqual body token N/A N/A N/A mock patch oauthlib.common.generate_token new N/A N/A N/A N/A abc test_password_grant N/A N/A self N/A N/A N/A body grant_type=password&username=a&password=hello&scope=all+of+them N/A N/A headers body status_code N/A N/A N/A self endpoint create_token_response body body N/A body N/A N/A json loads body N/A token N/A token_type expires_in access_token refresh_token scope Bearer N/A self expires_in N/A body N/A access_token abc all of them N/A N/A N/A self assertEqual body token N/A N/A N/A mock patch oauthlib.common.generate_token new N/A N/A N/A N/A abc test_scopes_and_user_id_stored_in_access_token N/A N/A self N/A N/A N/A body grant_type=password&username=a&password=hello&scope=all+of+them N/A N/A headers body status_code N/A N/A N/A self endpoint create_token_response body body N/A access_token N/A N/A N/A json loads body N/A access_token N/A claims N/A N/A common verify_signed_token N/A self public_pem access_token N/A N/A N/A self assertEqual N/A claims N/A scope all of them N/A N/A N/A self assertEqual N/A claims N/A user_id 123 N/A N/A N/A mock patch oauthlib.common.generate_token new N/A N/A N/A N/A abc test_client_grant N/A N/A self N/A N/A N/A body grant_type=client_credentials&scope=all+of+them N/A N/A headers body status_code N/A N/A N/A self endpoint create_token_response body body N/A body N/A N/A json loads body N/A token N/A token_type expires_in access_token scope Bearer N/A self expires_in N/A body N/A access_token all of them N/A N/A N/A self assertEqual body token N/A N/A N/A mock patch oauthlib.common.generate_token new N/A N/A N/A N/A abc test_missing_type N/A N/A self N/A N/A N/A N/A _ body _ N/A N/A N/A self endpoint create_token_response body N/A token N/A error unsupported_grant_type N/A N/A N/A self assertEqual N/A N/A json loads body token N/A test_invalid_type N/A N/A self N/A N/A N/A body grant_type=invalid N/A N/A _ body _ N/A N/A N/A self endpoint create_token_response body body N/A token N/A error unsupported_grant_type N/A N/A N/A self assertEqual N/A N/A json loads body token N/A N/A ResourceEndpointTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self mock_validator N/A N/A mock MagicMock N/A N/A N/A self addCleanup setattr self mock_validator N/A N/A mock MagicMock N/A token N/A N/A tokens BearerToken request_validator N/A self mock_validator N/A N/A self endpoint N/A ResourceEndpoint default_token Bearer token_types N/A Bearer token N/A test_defaults N/A N/A self N/A N/A N/A uri http://a.b/path?some=query N/A N/A N/A N/A self mock_validator validate_bearer_token return_value False N/A N/A valid request N/A N/A N/A self endpoint verify_request uri N/A N/A N/A self assertFalse valid N/A N/A N/A self assertEqual N/A request token_type Bearer N/A N/A