Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/authlib/authlib
/ functions
Functions
2,764 in github.com/authlib/authlib
⨍
Functions
2,764
◇
Types & classes
369
↳
Endpoints
41
Function
test_invalid_scope_none
(test_client, token)
tests/flask/test_oauth2/test_refresh_token.py:126
Function
test_invalid_signature
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:374
Function
test_invalid_signature
(test_client)
tests/flask/test_oauth2/test_id_jag_grant.py:179
Function
test_invalid_signature
(app, test_client, use_cache)
tests/flask/test_oauth1/test_temporary_credentials.py:331
Function
test_invalid_signature_raises_invalid_token_error
()
tests/core/test_oauth2/test_rfc9068_token_validator.py:56
Function
test_invalid_sub
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:451
Function
test_invalid_subject
(test_client)
tests/flask/test_oauth2/test_id_jag_grant.py:234
Function
test_invalid_token
(factory)
tests/django/test_oauth2/test_resource_protector.py:29
Function
test_invalid_token
(factory, server, token)
tests/django/test_oauth2/test_revocation_endpoint.py:61
Function
test_invalid_token
(test_client)
tests/flask/test_oauth2/test_introspection_endpoint.py:82
Function
test_invalid_token
(test_client, token)
tests/flask/test_oauth2/test_oauth2_server.py:93
Function
test_invalid_token
(test_client)
tests/flask/test_oauth2/test_revocation_endpoint.py:59
Function
test_invalid_token
(test_client)
tests/flask/test_oauth2/rfc9068/test_resource_server.py:201
Function
test_invalid_token_and_verifiers
(app, test_client)
tests/flask/test_oauth1/test_token_credentials.py:77
Function
test_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
Function
test_invalid_token_request_parameters
(factory, server)
tests/django/test_oauth1/test_token_credentials.py:24
Function
test_invalid_token_request_parameters
(app, test_client)
tests/flask/test_oauth1/test_token_credentials.py:48
Function
test_invalid_token_string
(oct_key)
tests/core/test_oauth2/test_rfc7523_validator.py:17
Function
test_invalid_token_type
(token)
tests/clients/test_requests/test_oauth2_session.py:67
Function
test_invalid_url
(url)
tests/core/test_common_urls.py:31
Function
test_invalid_user
(test_client, token)
tests/flask/test_oauth2/test_refresh_token.py:145
Function
test_invalid_values
()
tests/jose/test_jwt.py:227
Function
test_iss_sub_not_same
(test_client, server)
tests/flask/test_oauth2/test_jwt_bearer_client_auth.py:258
Function
test_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
Function
test_jar_request_uri_does_not_require_oidc_registration
( test_client, server, require_registration )
tests/flask/test_oauth2/test_jwt_authorization_request.py:723
Function
test_jti_replay_rejected
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:426
Function
test_jti_replay_rejected
(test_client)
tests/flask/test_oauth2/test_id_jag_grant.py:281
Function
test_jwk_find_by_kid_with_alg
()
tests/jose/test_jwk.py:288
Function
test_jwk_find_by_kid_with_use
()
tests/jose/test_jwk.py:276
Function
test_jwk_generate_keys
()
tests/jose/test_jwk.py:230
Function
test_jwk_import_key_set
()
tests/jose/test_jwk.py:258
Function
test_jwk_import_keys
()
tests/jose/test_jwk.py:244
Function
test_jwk_key_set
()
tests/jose/test_jwk.py:308
Function
test_jwk_thumbprint
()
tests/jose/test_jwk.py:300
Function
test_jwt_bearer_token_generator
(test_client, server)
tests/flask/test_oauth2/test_jwt_bearer_grant.py:147
Function
test_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
Function
test_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
Function
test_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
Function
test_list_to_scope
()
tests/core/test_oauth2/test_rfc6749_misc.py:61
Function
test_logout_redirect
Test logout_redirect generates correct URL with state stored in session.
tests/clients/test_django/test_oauth_client.py:354
Function
test_logout_redirect
Test logout_redirect generates correct URL with state stored in session.
tests/clients/test_starlette/test_oauth_client.py:481
Function
test_logout_redirect_missing_endpoint
Test logout_redirect raises RuntimeError when end_session_endpoint is missing.
tests/clients/test_django/test_oauth_client.py:421
Function
test_logout_redirect_missing_endpoint
Test logout_redirect raises RuntimeError when end_session_endpoint is missing.
tests/clients/test_starlette/test_oauth_client.py:562
Function
test_logout_redirect_missing_endpoint
Test logout_redirect raises RuntimeError when end_session_endpoint is missing.
tests/clients/test_flask/test_oauth_client.py:788
Function
test_logout_redirect_with_cache
Test logout_redirect stores state in cache instead of session.
tests/clients/test_starlette/test_oauth_client.py:676
Function
test_logout_redirect_with_custom_state
Test logout_redirect uses a custom state value when provided.
tests/clients/test_flask/test_oauth_client.py:758
Function
test_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
Function
test_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
Function
test_logout_redirect_with_metadata
Test logout_redirect generates correct URL with state stored in session.
tests/clients/test_flask/test_oauth_client.py:651
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Function
test_logout_with_redirect_uri
Logout with valid redirect URI redirects.
tests/flask/test_oauth2/test_end_session.py:152
Function
test_logout_with_redirect_uri_and_state
State parameter is appended to redirect URI.
tests/flask/test_oauth2/test_end_session.py:165
Function
test_logout_with_valid_id_token
Logout with valid id_token_hint succeeds.
tests/flask/test_oauth2/test_end_session.py:142
Function
test_logout_without_id_token
Logout without id_token_hint succeeds in non-interactive mode.
tests/flask/test_oauth2/test_end_session.py:179
Function
test_loopback_lookalike_authority
A loopback name outside of the host component must not pass the check.
tests/core/test_common_security.py:74
Function
test_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
Function
test_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
Function
test_malformed_assertion_value_error
A completely malformed assertion that causes ValueError during decode.
tests/core/test_oauth2/test_id_jag.py:188
Function
test_metadata_classes_composition
()
tests/core/test_oauth2/test_rfc9207.py:28
Function
test_mis_match_state
(token)
tests/clients/test_requests/test_oauth2_session.py:340
Function
test_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
Function
test_missing_assertion
()
tests/core/test_oauth2/test_id_jag.py:461
Function
test_missing_assertion
(test_client)
tests/flask/test_oauth2/test_jwt_bearer_grant.py:60
Function
test_missing_assertion
(test_client)
tests/flask/test_oauth2/test_id_jag_grant.py:105
Function
test_missing_assertion_claims
(test_client)
tests/flask/test_oauth2/test_jwt_bearer_grant.py:200
Function
test_missing_audience_configuration
(test_client, monkeypatch, audiences)
tests/flask/test_oauth2/test_jwt_bearer_grant.py:256
Function
test_missing_authorization
(test_client)
tests/flask/test_oauth2/rfc9068/test_resource_server.py:186
Function
test_missing_client_id
The client_id parameter is mandatory.
tests/flask/test_oauth2/test_jwt_authorization_request.py:398
Function
test_missing_client_id
(test_client)
tests/flask/test_oauth2/test_device_code_grant.py:239
Function
test_missing_client_id_claim
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:286
Function
test_missing_code_challenge
(test_client)
tests/flask/test_oauth2/test_code_challenge.py:51
Function
test_missing_code_verifier
(test_client)
tests/flask/test_oauth2/test_code_challenge.py:157
Function
test_missing_exp_claim
(test_client, server)
tests/flask/test_oauth2/test_jwt_bearer_client_auth.py:234
Function
test_missing_iat_claim
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:307
Function
test_missing_iss_claim
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:314
Function
test_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
Function
test_missing_jti
(test_client, server)
tests/flask/test_oauth2/test_jwt_bearer_client_auth.py:283
Function
test_missing_jti_claim
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:300
Function
test_missing_openid_in_scope
(test_client)
tests/flask/test_oauth2/test_openid_implict_grant.py:94
Function
test_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
Function
test_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
Function
test_missing_required_claims
(test_client, client, user, jwks)
tests/flask/test_oauth2/rfc9068/test_resource_server.py:233
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Function
test_missing_sub_claim
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:293
Function
test_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
Function
test_missing_token
()
tests/clients/test_requests/test_oauth2_session.py:416
Function
test_missing_typ_header
(rsa_private)
tests/core/test_oauth2/test_id_jag.py:244
Function
test_missint_claims
(oct_key)
tests/core/test_oauth2/test_rfc7523_validator.py:24
Function
test_nbf_in_future
nbf ahead of current time must be rejected (auto-handled by joserfc).
tests/core/test_oauth2/test_id_jag.py:402
← previous
next →
2,101–2,200 of 2,764, ranked by callers