issues
search
zomglings
/
locust-demo
1
stars
0
forks
source link
authlib
#8
Open
zomglings
opened
4 years ago
zomglings
commented
4 years ago
Locust summary for:
https://github.com/lepture/authlib/pull/278
zomglings
commented
4 years ago
Locust summary
Git references
Initial:
84ba75a
Terminal:
a167172
tests/fastapi/test_oauth2/test_authorization_code_grant.py
Changes:
Name:
AuthorizationCodeTest
Type:
class
Changed lines:
235
Total lines:
235
Changes:
Name:
AuthorizationCodeTest.register_grant
Type:
function
Changed lines:
2
Total lines:
2
Name:
AuthorizationCodeTest.prepare_data
Type:
function
Changed lines:
34
Total lines:
34
Name:
AuthorizationCodeTest.test_get_authorize
Type:
function
Changed lines:
4
Total lines:
4
Name:
AuthorizationCodeTest.test_invalid_client_id
Type:
function
Changed lines:
9
Total lines:
9
Name:
AuthorizationCodeTest.test_invalid_authorize
Type:
function
Changed lines:
9
Total lines:
9
Name:
AuthorizationCodeTest.test_unauthorized_client
Type:
function
Changed lines:
4
Total lines:
4
Name:
AuthorizationCodeTest.test_invalid_client
Type:
function
Changed lines:
18
Total lines:
18
Name:
AuthorizationCodeTest.test_invalid_code
Type:
function
Changed lines:
30
Total lines:
30
Name:
AuthorizationCodeTest.test_invalid_redirect_uri
Type:
function
Changed lines:
20
Total lines:
20
Name:
AuthorizationCodeTest.test_invalid_grant_type
Type:
function
Changed lines:
12
Total lines:
12
Name:
AuthorizationCodeTest.test_authorize_token_no_refresh_token
Type:
function
Changed lines:
17
Total lines:
17
Name:
AuthorizationCodeTest.test_authorize_token_has_refresh_token
Type:
function
Changed lines:
20
Total lines:
20
Name:
AuthorizationCodeTest.test_client_secret_post
Type:
function
Changed lines:
23
Total lines:
23
Name:
AuthorizationCodeTest.test_token_generator
Type:
function
Changed lines:
18
Total lines:
18
Name:
AuthorizationCodeGrant
Type:
class
Changed lines:
5
Total lines:
5
Changes:
Name:
AuthorizationCodeGrant.save_authorization_code
Type:
function
Changed lines:
2
Total lines:
2
tests/fastapi/test_oauth2/test_code_challenge.py
Changes:
Name:
CodeChallengeTest
Type:
class
Changed lines:
200
Total lines:
200
Changes:
Name:
CodeChallengeTest.prepare_data
Type:
function
Changed lines:
33
Total lines:
33
Name:
CodeChallengeTest.test_missing_code_challenge
Type:
function
Changed lines:
4
Total lines:
4
Name:
CodeChallengeTest.test_has_code_challenge
Type:
function
Changed lines:
4
Total lines:
4
Name:
CodeChallengeTest.test_invalid_code_challenge_method
Type:
function
Changed lines:
5
Total lines:
5
Name:
CodeChallengeTest.test_supported_code_challenge_method
Type:
function
Changed lines:
5
Total lines:
5
Name:
CodeChallengeTest.test_trusted_client_without_code_challenge
Type:
function
Changed lines:
18
Total lines:
18
Name:
CodeChallengeTest.test_missing_code_verifier
Type:
function
Changed lines:
15
Total lines:
15
Name:
CodeChallengeTest.test_trusted_client_missing_code_verifier
Type:
function
Changed lines:
15
Total lines:
15
Name:
CodeChallengeTest.test_plain_code_challenge_invalid
Type:
function
Changed lines:
16
Total lines:
16
Name:
CodeChallengeTest.test_plain_code_challenge_failed
Type:
function
Changed lines:
16
Total lines:
16
Name:
CodeChallengeTest.test_plain_code_challenge_success
Type:
function
Changed lines:
17
Total lines:
17
Name:
CodeChallengeTest.test_s256_code_challenge_success
Type:
function
Changed lines:
20
Total lines:
20
Name:
CodeChallengeTest.test_not_implemented_code_challenge_method
Type:
function
Changed lines:
19
Total lines:
19
Name:
AuthorizationCodeGrant
Type:
class
Changed lines:
5
Total lines:
5
Changes:
Name:
AuthorizationCodeGrant.save_authorization_code
Type:
function
Changed lines:
2
Total lines:
2
Name:
CodeChallenge
Type:
class
Changed lines:
2
Total lines:
2
tests/fastapi/test_oauth2/test_client_registration_endpoint.py
Changes:
Name:
ClientRegistrationTest
Type:
class
Changed lines:
160
Total lines:
160
Changes:
Name:
ClientRegistrationTest.prepare_data
Type:
function
Changed lines:
39
Total lines:
39
Changes:
Name:
ClientRegistrationTest.test_access_denied
Type:
function
Changed lines:
5
Total lines:
5
Name:
ClientRegistrationTest.test_invalid_request
Type:
function
Changed lines:
6
Total lines:
6
Name:
ClientRegistrationTest.test_create_client
Type:
function
Changed lines:
10
Total lines:
10
Name:
ClientRegistrationTest.test_software_statement
Type:
function
Changed lines:
13
Total lines:
13
Name:
ClientRegistrationTest.test_no_public_key
Type:
function
Changed lines:
17
Total lines:
17
Changes:
Name:
ClientRegistrationTest.test_scopes_supported
Type:
function
Changed lines:
15
Total lines:
15
Name:
ClientRegistrationTest.test_response_types_supported
Type:
function
Changed lines:
15
Total lines:
15
Name:
ClientRegistrationTest.test_grant_types_supported
Type:
function
Changed lines:
15
Total lines:
15
Name:
ClientRegistrationTest.test_token_endpoint_auth_methods_supported
Type:
function
Changed lines:
15
Total lines:
15
Name:
ClientRegistrationEndpoint
Type:
class
Changed lines:
21
Total lines:
21
Changes:
Name:
ClientRegistrationEndpoint.authenticate_token
Type:
function
Changed lines:
5
Total lines:
5
Name:
ClientRegistrationEndpoint.resolve_public_key
Type:
function
Changed lines:
2
Total lines:
2
Name:
ClientRegistrationEndpoint.save_client
Type:
function
Changed lines:
9
Total lines:
9
tests/fastapi/test_oauth2/test_device_code_grant.py
Changes:
Name:
DeviceCodeGrantTest
Type:
class
Changed lines:
121
Total lines:
121
Changes:
Name:
DeviceCodeGrantTest.create_server
Type:
function
Changed lines:
5
Total lines:
5
Name:
DeviceCodeGrantTest.prepare_data
Type:
function
Changed lines:
16
Total lines:
16
Name:
DeviceCodeGrantTest.test_invalid_request
Type:
function
Changed lines:
23
Total lines:
23
Name:
DeviceCodeGrantTest.test_unauthorized_client
Type:
function
Changed lines:
18
Total lines:
18
Name:
DeviceCodeGrantTest.test_invalid_client
Type:
function
Changed lines:
10
Total lines:
10
Name:
DeviceCodeGrantTest.test_expired_token
Type:
function
Changed lines:
10
Total lines:
10
Name:
DeviceCodeGrantTest.test_denied_by_user
Type:
function
Changed lines:
10
Total lines:
10
Name:
DeviceCodeGrantTest.test_authorization_pending
Type:
function
Changed lines:
10
Total lines:
10
Name:
DeviceCodeGrantTest.test_get_access_token
Type:
function
Changed lines:
10
Total lines:
10
Name:
DeviceCodeGrant
Type:
class
Changed lines:
23
Total lines:
23
Changes:
Name:
DeviceCodeGrant.query_device_credential
Type:
function
Changed lines:
12
Total lines:
12
Name:
DeviceCodeGrant.query_user_grant
Type:
function
Changed lines:
6
Total lines:
6
Name:
DeviceCodeGrant.should_slow_down
Type:
function
Changed lines:
2
Total lines:
2
Name:
DeviceAuthorizationEndpointTest
Type:
class
Changed lines:
42
Total lines:
42
Changes:
Name:
DeviceAuthorizationEndpointTest.create_server
Type:
function
Changed lines:
17
Total lines:
17
Changes:
Name:
DeviceAuthorizationEndpointTest.test_missing_client_id
Type:
function
Changed lines:
8
Total lines:
8
Name:
DeviceAuthorizationEndpointTest.test_create_authorization_response
Type:
function
Changed lines:
14
Total lines:
14
Name:
DeviceAuthorizationEndpoint
Type:
class
Changed lines:
6
Total lines:
6
Changes:
Name:
DeviceAuthorizationEndpoint.get_verification_uri
Type:
function
Changed lines:
2
Total lines:
2
Name:
DeviceAuthorizationEndpoint.save_device_credential
Type:
function
Changed lines:
2
Total lines:
2
tests/fastapi/test_oauth2/test_jwt_bearer_client_auth.py
Changes:
Name:
ClientCredentialsTest
Type:
class
Changed lines:
124
Total lines:
124
Changes:
Name:
ClientCredentialsTest.prepare_data
Type:
function
Changed lines:
24
Total lines:
24
Name:
ClientCredentialsTest.test_invalid_client
Type:
function
Changed lines:
8
Total lines:
8
Name:
ClientCredentialsTest.test_invalid_jwt
Type:
function
Changed lines:
14
Total lines:
14
Name:
ClientCredentialsTest.test_not_found_client
Type:
function
Changed lines:
14
Total lines:
14
Name:
ClientCredentialsTest.test_not_supported_auth_method
Type:
function
Changed lines:
13
Total lines:
13
Name:
ClientCredentialsTest.test_client_secret_jwt
Type:
function
Changed lines:
15
Total lines:
15
Name:
ClientCredentialsTest.test_private_key_jwt
Type:
function
Changed lines:
14
Total lines:
14
Name:
ClientCredentialsTest.test_not_validate_jti
Type:
function
Changed lines:
14
Total lines:
14
Name:
JWTClientAuth
Type:
class
Changed lines:
8
Total lines:
8
Changes:
Name:
JWTClientAuth.validate_jti
Type:
function
Changed lines:
2
Total lines:
2
Name:
JWTClientAuth.resolve_client_public_key
Type:
function
Changed lines:
4
Total lines:
4
Name:
JWTClientCredentialsGrant
Type:
class
Changed lines:
4
Total lines:
4
tests/fastapi/test_oauth2/test_oauth2_server.py
Changes:
Name:
create_resource_server
Type:
function
Changed lines:
41
Total lines:
41
Changes:
Name:
create_resource_server.user_profile
Type:
function
Changed lines:
4
Total lines:
4
Name:
create_resource_server.user_email
Type:
function
Changed lines:
4
Total lines:
4
Name:
create_resource_server.public_info
Type:
function
Changed lines:
3
Total lines:
3
Name:
create_resource_server.operator_and
Type:
function
Changed lines:
3
Total lines:
3
Name:
create_resource_server.operator_or
Type:
function
Changed lines:
3
Total lines:
3
Name:
create_resource_server.scope_operator
Type:
function
Changed lines:
2
Total lines:
2
Name:
create_resource_server.operator_func
Type:
function
Changed lines:
3
Total lines:
3
Name:
create_resource_server.test_acquire
Type:
function
Changed lines:
4
Total lines:
4
Name:
ResourceTest
Type:
class
Changed lines:
107
Total lines:
107
Changes:
Name:
ResourceTest.prepare_data
Type:
function
Changed lines:
17
Total lines:
17
Name:
ResourceTest.create_token
Type:
function
Changed lines:
11
Total lines:
11
Name:
ResourceTest.create_bearer_header
Type:
function
Changed lines:
2
Total lines:
2
Name:
ResourceTest.test_invalid_token
Type:
function
Changed lines:
19
Total lines:
19
Name:
ResourceTest.test_expired_token
Type:
function
Changed lines:
12
Total lines:
12
Name:
ResourceTest.test_insufficient_token
Type:
function
Changed lines:
8
Total lines:
8
Name:
ResourceTest.test_access_resource
Type:
function
Changed lines:
16
Total lines:
16
Name:
ResourceTest.test_scope_operator
Type:
function
Changed lines:
14
Total lines:
14
Name:
AuthorizationTest
Type:
class
Changed lines:
19
Total lines:
19
Changes:
Name:
AuthorizationTest.test_none_grant
Type:
function
Changed lines:
18
Total lines:
18
authlib/integrations/fastapi_oauth2/authorization_server.py
Changes:
Name:
AuthorizationServer
Type:
class
Changed lines:
53
Total lines:
53
Changes:
Name:
AuthorizationServer.__init__
Type:
function
Changed lines:
3
Total lines:
3
Name:
AuthorizationServer.init_app
Type:
function
Changed lines:
19
Total lines:
19
Name:
AuthorizationServer.get_error_uris
Type:
function
Changed lines:
5
Total lines:
5
Name:
AuthorizationServer.create_oauth2_request
Type:
function
Changed lines:
2
Total lines:
2
Name:
AuthorizationServer.create_json_request
Type:
function
Changed lines:
2
Total lines:
2
Name:
AuthorizationServer.handle_response
Type:
function
Changed lines:
2
Total lines:
2
Name:
AuthorizationServer.validate_consent_request
Type:
function
Changed lines:
11
Total lines:
11
Name:
create_token_expires_in_generator
Type:
function
Changed lines:
22
Total lines:
22
Changes:
Name:
create_token_expires_in_generator.expires_in
Type:
function
Changed lines:
2
Total lines:
2
Name:
create_token_generator
Type:
function
Changed lines:
14
Total lines:
14
Changes:
Name:
create_token_generator.token_generator
Type:
function
Changed lines:
2
Total lines:
2
Name:
create_bearer_token_generator
Type:
function
Changed lines:
20
Total lines:
20
tests/fastapi/test_oauth2/test_implicit_grant.py
Changes:
Name:
ImplicitTest
Type:
class
Changed lines:
76
Total lines:
76
Changes:
Name:
ImplicitTest.prepare_data
Type:
function
Changed lines:
33
Total lines:
33
Name:
ImplicitTest.test_get_authorize
Type:
function
Changed lines:
4
Total lines:
4
Name:
ImplicitTest.test_confidential_client
Type:
function
Changed lines:
4
Total lines:
4
Name:
ImplicitTest.test_unsupported_client
Type:
function
Changed lines:
4
Total lines:
4
Name:
ImplicitTest.test_invalid_authorize
Type:
function
Changed lines:
8
Total lines:
8
Name:
ImplicitTest.test_authorize_token
Type:
function
Changed lines:
10
Total lines:
10
Name:
ImplicitTest.test_token_generator
Type:
function
Changed lines:
6
Total lines:
6
tests/fastapi/test_oauth2/test_client_credentials_grant.py
Changes:
Name:
ClientCredentialsTest
Type:
class
Changed lines:
88
Total lines:
88
Changes:
Name:
ClientCredentialsTest.prepare_data
Type:
function
Changed lines:
20
Total lines:
20
Name:
ClientCredentialsTest.test_invalid_client
Type:
function
Changed lines:
16
Total lines:
16
Name:
ClientCredentialsTest.test_invalid_grant_type
Type:
function
Changed lines:
10
Total lines:
10
Name:
ClientCredentialsTest.test_invalid_scope
Type:
function
Changed lines:
12
Total lines:
12
Name:
ClientCredentialsTest.test_authorize_token
Type:
function
Changed lines:
10
Total lines:
10
Name:
ClientCredentialsTest.test_token_generator
Type:
function
Changed lines:
14
Total lines:
14
tests/fastapi/test_oauth2/test_introspection_endpoint.py
Changes:
Name:
IntrospectTokenTest
Type:
class
Changed lines:
135
Total lines:
135
Changes:
Name:
IntrospectTokenTest.prepare_data
Type:
function
Changed lines:
34
Total lines:
34
Changes:
Name:
IntrospectTokenTest.create_token
Type:
function
Changed lines:
12
Total lines:
12
Name:
IntrospectTokenTest.test_invalid_client
Type:
function
Changed lines:
24
Total lines:
24
Name:
IntrospectTokenTest.test_invalid_token
Type:
function
Changed lines:
34
Total lines:
34
Name:
IntrospectTokenTest.test_introspect_token_with_hint
Type:
function
Changed lines:
13
Total lines:
13
Name:
IntrospectTokenTest.test_introspect_token_without_hint
Type:
function
Changed lines:
12
Total lines:
12
Name:
MyIntrospectionEndpoint
Type:
class
Changed lines:
17
Total lines:
17
Changes:
Name:
MyIntrospectionEndpoint.query_token
Type:
function
Changed lines:
2
Total lines:
2
Name:
MyIntrospectionEndpoint.introspect_token
Type:
function
Changed lines:
13
Total lines:
13
tests/fastapi/test_oauth2/test_jwt_bearer_grant.py
Changes:
Name:
JWTBearerGrantTest
Type:
class
Changed lines:
86
Total lines:
86
Changes:
Name:
JWTBearerGrantTest.prepare_data
Type:
function
Changed lines:
21
Total lines:
21
Name:
JWTBearerGrantTest.test_missing_assertion
Type:
function
Changed lines:
8
Total lines:
8
Name:
JWTBearerGrantTest.test_invalid_assertion
Type:
function
Changed lines:
12
Total lines:
12
Name:
JWTBearerGrantTest.test_authorize_token
Type:
function
Changed lines:
12
Total lines:
12
Name:
JWTBearerGrantTest.test_unauthorized_client
Type:
function
Changed lines:
12
Total lines:
12
Name:
JWTBearerGrantTest.test_token_generator
Type:
function
Changed lines:
15
Total lines:
15
Name:
JWTBearerGrant
Type:
class
Changed lines:
11
Total lines:
11
Changes:
Name:
JWTBearerGrant.authenticate_user
Type:
function
Changed lines:
2
Total lines:
2
Name:
JWTBearerGrant.authenticate_client
Type:
function
Changed lines:
3
Total lines:
3
Name:
JWTBearerGrant.resolve_public_key
Type:
function
Changed lines:
3
Total lines:
3
authlib/integrations/fastapi_oauth2/resource_protector.py
Changes:
Name:
ResourceProtector
Type:
class
Changed lines:
46
Total lines:
46
Changes:
Name:
ResourceProtector.acquire_token
Type:
function
Changed lines:
18
Total lines:
18
Name:
ResourceProtector.acquire
Type:
function
Changed lines:
7
Total lines:
7
Name:
ResourceProtector.__call__
Type:
function
Changed lines:
15
Total lines:
15
Changes:
Name:
raise_error_response
Type:
function
Changed lines:
10
Total lines:
10
tests/fastapi/test_oauth2/models.py
Changes:
Name:
User
Type:
class
Changed lines:
15
Total lines:
15
Changes:
Name:
User.get_user_id
Type:
function
Changed lines:
2
Total lines:
2
Name:
User.check_password
Type:
function
Changed lines:
2
Total lines:
2
Name:
User.generate_user_info
Type:
function
Changed lines:
3
Total lines:
3
Name:
CodeGrantMixin
Type:
class
Changed lines:
15
Total lines:
15
Changes:
Name:
CodeGrantMixin.query_authorization_code
Type:
function
Changed lines:
6
Total lines:
6
Name:
CodeGrantMixin.delete_authorization_code
Type:
function
Changed lines:
3
Total lines:
3
Name:
CodeGrantMixin.authenticate_user
Type:
function
Changed lines:
3
Total lines:
3
Name:
AuthorizationCode
Type:
class
Changed lines:
10
Total lines:
10
Changes:
Name:
AuthorizationCode.user
Type:
function
Changed lines:
3
Total lines:
3
Name:
Token
Type:
class
Changed lines:
12
Total lines:
12
Changes:
Name:
Token.is_refresh_token_expired
Type:
function
Changed lines:
3
Total lines:
3
Name:
Client
Type:
class
Changed lines:
8
Total lines:
8
Name:
save_authorization_code
Type:
function
Changed lines:
15
Total lines:
15
Name:
exists_nonce
Type:
function
Changed lines:
4
Total lines:
4
tests/fastapi/test_oauth2/oauth2_server.py
Changes:
Name:
create_authorization_server
Type:
function
Changed lines:
77
Total lines:
77
Changes:
Name:
create_authorization_server.authorize
Type:
function
Changed lines:
12
Total lines:
12
Name:
create_authorization_server.authorize
Type:
function
Changed lines:
7
Total lines:
7
Name:
create_authorization_server.issue_token
Type:
function
Changed lines:
44
Total lines:
44
Name:
TestCase
Type:
class
Changed lines:
16
Total lines:
16
Changes:
Name:
TestCase.setUp
Type:
function
Changed lines:
7
Total lines:
7
Name:
TestCase.tearDown
Type:
function
Changed lines:
2
Total lines:
2
Name:
TestCase.create_basic_header
Type:
function
Changed lines:
4
Total lines:
4
Name:
token_generator
Type:
function
Changed lines:
5
Total lines:
5
Name:
create_fastapi_app
Type:
function
Changed lines:
12
Total lines:
12
Locust summary for: https://github.com/lepture/authlib/pull/278