MCPcopy Create free account

hub / github.com/authlib/authlib / functions

Functions2,764 in github.com/authlib/authlib

Functiontest_invalid_scope_none
(test_client, token)
tests/flask/test_oauth2/test_refresh_token.py:126
Functiontest_invalid_signature
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:374
Functiontest_invalid_signature
(test_client)
tests/flask/test_oauth2/test_id_jag_grant.py:179
Functiontest_invalid_signature
(app, test_client, use_cache)
tests/flask/test_oauth1/test_temporary_credentials.py:331
Functiontest_invalid_signature_raises_invalid_token_error
()
tests/core/test_oauth2/test_rfc9068_token_validator.py:56
Functiontest_invalid_sub
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:451
Functiontest_invalid_subject
(test_client)
tests/flask/test_oauth2/test_id_jag_grant.py:234
Functiontest_invalid_token
(factory)
tests/django/test_oauth2/test_resource_protector.py:29
Functiontest_invalid_token
(factory, server, token)
tests/django/test_oauth2/test_revocation_endpoint.py:61
Functiontest_invalid_token
(test_client)
tests/flask/test_oauth2/test_introspection_endpoint.py:82
Functiontest_invalid_token
(test_client, token)
tests/flask/test_oauth2/test_oauth2_server.py:93
Functiontest_invalid_token
(test_client)
tests/flask/test_oauth2/test_revocation_endpoint.py:59
Functiontest_invalid_token
(test_client)
tests/flask/test_oauth2/rfc9068/test_resource_server.py:201
Functiontest_invalid_token_and_verifiers
(app, test_client)
tests/flask/test_oauth1/test_token_credentials.py:77
Functiontest_invalid_token_error_extra_attributes_in_www_authenticate
Extra attributes passed to InvalidTokenError should appear as individual key=value pairs in the WWW-Authenticate header.
tests/core/test_oauth2/test_rfc6750.py:4
Functiontest_invalid_token_request_parameters
(factory, server)
tests/django/test_oauth1/test_token_credentials.py:24
Functiontest_invalid_token_request_parameters
(app, test_client)
tests/flask/test_oauth1/test_token_credentials.py:48
Functiontest_invalid_token_string
(oct_key)
tests/core/test_oauth2/test_rfc7523_validator.py:17
Functiontest_invalid_token_type
(token)
tests/clients/test_requests/test_oauth2_session.py:67
Functiontest_invalid_url
(url)
tests/core/test_common_urls.py:31
Functiontest_invalid_user
(test_client, token)
tests/flask/test_oauth2/test_refresh_token.py:145
Functiontest_invalid_values
()
tests/jose/test_jwt.py:227
Functiontest_iss_sub_not_same
(test_client, server)
tests/flask/test_oauth2/test_jwt_bearer_client_auth.py:258
Functiontest_issuer_as_audience
Per RFC 7523 Section 3 and draft-ietf-oauth-rfc7523bis, the AS issuer identifier should be a valid audience value for client assertion JWTs.
tests/flask/test_oauth2/test_jwt_bearer_client_auth.py:307
Functiontest_jar_request_uri_does_not_require_oidc_registration
( test_client, server, require_registration )
tests/flask/test_oauth2/test_jwt_authorization_request.py:723
Functiontest_jti_replay_rejected
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:426
Functiontest_jti_replay_rejected
(test_client)
tests/flask/test_oauth2/test_id_jag_grant.py:281
Functiontest_jwk_find_by_kid_with_alg
()
tests/jose/test_jwk.py:288
Functiontest_jwk_find_by_kid_with_use
()
tests/jose/test_jwk.py:276
Functiontest_jwk_generate_keys
()
tests/jose/test_jwk.py:230
Functiontest_jwk_import_key_set
()
tests/jose/test_jwk.py:258
Functiontest_jwk_import_keys
()
tests/jose/test_jwk.py:244
Functiontest_jwk_key_set
()
tests/jose/test_jwk.py:308
Functiontest_jwk_thumbprint
()
tests/jose/test_jwk.py:300
Functiontest_jwt_bearer_token_generator
(test_client, server)
tests/flask/test_oauth2/test_jwt_bearer_grant.py:147
Functiontest_jwt_bearer_token_generator_casts_sub_to_string
The generated JWT ``sub`` must be a string (RFC 7519 Section 4.1.2), even when ``get_user_id()`` returns a non-string such as an integer primary k
tests/flask/test_oauth2/test_jwt_bearer_grant.py:169
Functiontest_jwt_config_alg_fallback
When the client has no ``id_token_signed_response_alg`` defined, ``get_jwt_config()["alg"]`` is used as the server-wide default.
tests/flask/test_oauth2/test_openid_code_grant.py:308
Functiontest_key_bound_assertion
An ID-JAG bound to a DPoP key or a certificate is rejected.
tests/flask/test_oauth2/test_id_jag_grant.py:198
Functiontest_list_to_scope
()
tests/core/test_oauth2/test_rfc6749_misc.py:61
Functiontest_logout_redirect
Test logout_redirect generates correct URL with state stored in session.
tests/clients/test_django/test_oauth_client.py:354
Functiontest_logout_redirect
Test logout_redirect generates correct URL with state stored in session.
tests/clients/test_starlette/test_oauth_client.py:481
Functiontest_logout_redirect_missing_endpoint
Test logout_redirect raises RuntimeError when end_session_endpoint is missing.
tests/clients/test_django/test_oauth_client.py:421
Functiontest_logout_redirect_missing_endpoint
Test logout_redirect raises RuntimeError when end_session_endpoint is missing.
tests/clients/test_starlette/test_oauth_client.py:562
Functiontest_logout_redirect_missing_endpoint
Test logout_redirect raises RuntimeError when end_session_endpoint is missing.
tests/clients/test_flask/test_oauth_client.py:788
Functiontest_logout_redirect_with_cache
Test logout_redirect stores state in cache instead of session.
tests/clients/test_starlette/test_oauth_client.py:676
Functiontest_logout_redirect_with_custom_state
Test logout_redirect uses a custom state value when provided.
tests/clients/test_flask/test_oauth_client.py:758
Functiontest_logout_redirect_with_extra_params
Test logout_redirect includes optional params: client_id, logout_hint, ui_locales.
tests/clients/test_starlette/test_oauth_client.py:812
Functiontest_logout_redirect_with_extra_params
Test logout_redirect includes optional params: client_id, logout_hint, ui_locales.
tests/clients/test_flask/test_oauth_client.py:724
Functiontest_logout_redirect_with_metadata
Test logout_redirect generates correct URL with state stored in session.
tests/clients/test_flask/test_oauth_client.py:651
Functiontest_logout_redirect_with_url_object
Test logout_redirect handles URL objects for post_logout_redirect_uri.
tests/clients/test_starlette/test_oauth_client.py:724
Functiontest_logout_redirect_without_redirect_uri
Test logout_redirect omits state when no post_logout_redirect_uri is provided.
tests/clients/test_django/test_oauth_client.py:393
Functiontest_logout_redirect_without_redirect_uri
Test logout_redirect omits state when no post_logout_redirect_uri is provided.
tests/clients/test_starlette/test_oauth_client.py:527
Functiontest_logout_redirect_without_redirect_uri
Test logout_redirect omits state when no post_logout_redirect_uri is provided.
tests/clients/test_flask/test_oauth_client.py:691
Functiontest_logout_with_redirect_uri
Logout with valid redirect URI redirects.
tests/flask/test_oauth2/test_end_session.py:152
Functiontest_logout_with_redirect_uri_and_state
State parameter is appended to redirect URI.
tests/flask/test_oauth2/test_end_session.py:165
Functiontest_logout_with_valid_id_token
Logout with valid id_token_hint succeeds.
tests/flask/test_oauth2/test_end_session.py:142
Functiontest_logout_without_id_token
Logout without id_token_hint succeeds in non-interactive mode.
tests/flask/test_oauth2/test_end_session.py:179
Functiontest_loopback_lookalike_authority
A loopback name outside of the host component must not pass the check.
tests/core/test_common_security.py:74
Functiontest_malformed_assertion
An 'assertion' that is not a compact JWS is rejected with an OAuth error.
tests/flask/test_oauth2/test_jwt_bearer_grant.py:281
Functiontest_malformed_assertion
A 'client_assertion' that is not a compact JWS is rejected with an OAuth error.
tests/flask/test_oauth2/test_jwt_bearer_client_auth.py:347
Functiontest_malformed_assertion_value_error
A completely malformed assertion that causes ValueError during decode.
tests/core/test_oauth2/test_id_jag.py:188
Functiontest_metadata_classes_composition
()
tests/core/test_oauth2/test_rfc9207.py:28
Functiontest_mis_match_state
(token)
tests/clients/test_requests/test_oauth2_session.py:340
Functiontest_mismatched_kid_raises_invalid_token_error
InvalidKeyIdError (not a subclass of DecodeError) must be caught.
tests/core/test_oauth2/test_rfc9068_token_validator.py:67
Functiontest_missing_assertion
()
tests/core/test_oauth2/test_id_jag.py:461
Functiontest_missing_assertion
(test_client)
tests/flask/test_oauth2/test_jwt_bearer_grant.py:60
Functiontest_missing_assertion
(test_client)
tests/flask/test_oauth2/test_id_jag_grant.py:105
Functiontest_missing_assertion_claims
(test_client)
tests/flask/test_oauth2/test_jwt_bearer_grant.py:200
Functiontest_missing_audience_configuration
(test_client, monkeypatch, audiences)
tests/flask/test_oauth2/test_jwt_bearer_grant.py:256
Functiontest_missing_authorization
(test_client)
tests/flask/test_oauth2/rfc9068/test_resource_server.py:186
Functiontest_missing_client_id
The client_id parameter is mandatory.
tests/flask/test_oauth2/test_jwt_authorization_request.py:398
Functiontest_missing_client_id
(test_client)
tests/flask/test_oauth2/test_device_code_grant.py:239
Functiontest_missing_client_id_claim
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:286
Functiontest_missing_code_challenge
(test_client)
tests/flask/test_oauth2/test_code_challenge.py:51
Functiontest_missing_code_verifier
(test_client)
tests/flask/test_oauth2/test_code_challenge.py:157
Functiontest_missing_exp_claim
(test_client, server)
tests/flask/test_oauth2/test_jwt_bearer_client_auth.py:234
Functiontest_missing_iat_claim
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:307
Functiontest_missing_iss_claim
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:314
Functiontest_missing_iss_claim
The 'iss' claim is read before the claims are verified, so its absence must be reported as an OAuth error.
tests/flask/test_oauth2/test_jwt_bearer_grant.py:310
Functiontest_missing_jti
(test_client, server)
tests/flask/test_oauth2/test_jwt_bearer_client_auth.py:283
Functiontest_missing_jti_claim
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:300
Functiontest_missing_openid_in_scope
(test_client)
tests/flask/test_oauth2/test_openid_implict_grant.py:94
Functiontest_missing_openid_in_scope_does_not_redirect_to_unregistered_uri
An unregistered redirect_uri must not be followed even when openid scope is missing.
tests/flask/test_oauth2/test_openid_implict_grant.py:163
Functiontest_missing_openid_in_scope_does_not_redirect_to_unregistered_uri
An unregistered redirect_uri must not be followed even when openid scope is missing.
tests/flask/test_oauth2/test_openid_hybrid_grant.py:224
Functiontest_missing_required_claims
(test_client, client, user, jwks)
tests/flask/test_oauth2/rfc9068/test_resource_server.py:233
Functiontest_missing_scope_empty_default
When client.get_allowed_scope() returns empty string for missing scope, the token should be issued without a scope.
tests/flask/test_oauth2/test_client_credentials_grant.py:142
Functiontest_missing_scope_empty_default
When client.get_allowed_scope() returns empty string for missing scope, the token should be issued without a scope.
tests/flask/test_oauth2/test_implicit_grant.py:114
Functiontest_missing_scope_empty_default
When client.get_allowed_scope() returns empty string for missing scope, the authorization should proceed without a scope.
tests/flask/test_oauth2/test_authorization_code_grant.py:388
Functiontest_missing_scope_rejected
Per RFC 6749 Section 3.3, when scope is omitted and client.get_allowed_scope() returns None, the server should fail with invalid_scope.
tests/flask/test_oauth2/test_client_credentials_grant.py:165
Functiontest_missing_scope_rejected
Per RFC 6749 Section 3.3, when scope is omitted and client.get_allowed_scope() returns None, the authorization should fail with invalid_scope.
tests/flask/test_oauth2/test_implicit_grant.py:131
Functiontest_missing_scope_rejected
Per RFC 6749 Section 3.3, when scope is omitted and client.get_allowed_scope() returns None, the authorization should fail with invalid_scope.
tests/flask/test_oauth2/test_authorization_code_grant.py:419
Functiontest_missing_scope_uses_default
Per RFC 6749 Section 3.3, when scope is omitted, the server should use a pre-defined default value from client.get_allowed_scope().
tests/flask/test_oauth2/test_client_credentials_grant.py:119
Functiontest_missing_scope_uses_default
Per RFC 6749 Section 3.3, when scope is omitted, the server should use a pre-defined default value from client.get_allowed_scope().
tests/flask/test_oauth2/test_implicit_grant.py:97
Functiontest_missing_scope_uses_default
Per RFC 6749 Section 3.3, when scope is omitted at authorization endpoint, the server should use a pre-defined default value from client.get_allow
tests/flask/test_oauth2/test_authorization_code_grant.py:357
Functiontest_missing_sub_claim
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:293
Functiontest_missing_sub_claim
The 'sub' claim is read before the claims are verified, so its absence must be reported as an OAuth error.
tests/flask/test_oauth2/test_jwt_bearer_client_auth.py:386
Functiontest_missing_token
()
tests/clients/test_requests/test_oauth2_session.py:416
Functiontest_missing_typ_header
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:244
Functiontest_missint_claims
(oct_key)
tests/core/test_oauth2/test_rfc7523_validator.py:24
Functiontest_nbf_in_future
nbf ahead of current time must be rejected (auto-handled by joserfc).
tests/core/test_oauth2/test_id_jag.py:402
← previousnext →2,101–2,200 of 2,764, ranked by callers