Auth Middleware
Getting Started:
Installation
User Guide
Middleware Configuration
Infrastructure Setup:
Infrastructure Setup
Provider-Specific Setup Guides
Overview
Security Considerations
Next Steps
Authentication Providers:
AWS Cognito Provider
Azure Entra ID Authentication Provider
JWT Authentication Provider
Advanced Topics:
Groups Provider
Overview
Built-in Providers
Using Groups in Your Application
Custom Groups Provider
Configuration Examples
Testing Groups Providers
Best Practices
Migration and Deployment
Troubleshooting
API Reference
See Also
Permissions Provider
Overview
Built-in Providers
Using Permissions in Your Application
Permission Patterns
Custom Permissions Provider
Advanced Features
Permission Management
Testing Permissions Providers
Best Practices
Troubleshooting
API Reference
See Also
Extending Authorization Providers
Overview
Understanding the Provider Interface
Integration Patterns
Advanced Patterns
Caching and Performance
Error Handling and Resilience
Testing Custom Providers
Deployment Considerations
Best Practices Summary
See Also
The User Property
Control Authentication and Authorization
Services Module
M2M Token Detection
Rate Limiting
Audit Logging
Metrics Collection
Best Practices
See Also
JWKS Cache Strategies
Cache Strategies
Background Refresh
Configuration Examples
Monitoring Cache Performance
Best Practices
Troubleshooting
Performance Comparison
See Also
jwt_bearer_manager
Exception Handling
API Reference:
API Reference
Type Definitions
Authentication Functions
Auth Middleware
Index
Index
_
|
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
J
|
L
|
M
|
P
|
R
|
S
|
T
|
U
|
V
_
__init__() (auth_middleware.jwt_auth_middleware.JwtAuthMiddleware method)
(auth_middleware.jwt_bearer_manager.JWTBearerManager method)
(auth_middleware.providers.authn.cognito_provider.CognitoProvider method)
(auth_middleware.providers.authn.jwt_provider.JWTProvider method)
(auth_middleware.services.AuditLogger method)
(auth_middleware.services.MetricsCollector method)
(auth_middleware.services.RateLimiter method)
A
auth_middleware.exceptions
module
auth_middleware.functions
module
auth_middleware.jwt_auth_middleware
module
auth_middleware.jwt_bearer_manager
module
auth_middleware.providers.authn.cognito_authz_provider_settings
module
auth_middleware.providers.authn.cognito_provider
module
auth_middleware.providers.authn.jwt_provider
module
auth_middleware.providers.authn.jwt_provider_settings
module
auth_middleware.providers.authz.cognito_groups_provider
module
auth_middleware.services.AuditEvent (built-in class)
auth_middleware.services.AuditLogger (built-in class)
auth_middleware.services.AuditMiddleware (built-in class)
auth_middleware.services.M2MTokenDetector (built-in class)
auth_middleware.services.MetricsCollector (built-in class)
auth_middleware.services.rate_limit()
built-in function
auth_middleware.services.RateLimiter (built-in class)
auth_middleware.types
module
B
built-in function
auth_middleware.services.rate_limit()
C
client_id (auth_middleware.services.AuditEvent attribute)
CognitoAuthzProviderSettings (class in auth_middleware.providers.authn.cognito_authz_provider_settings)
CognitoGroupsProvider (class in auth_middleware.providers.authz.cognito_groups_provider)
,
[1]
CognitoProvider (class in auth_middleware.providers.authn.cognito_provider)
create_user_from_token() (auth_middleware.providers.authn.cognito_provider.CognitoProvider method)
(auth_middleware.providers.authn.jwt_provider.JWTProvider method)
D
dispatch() (auth_middleware.jwt_auth_middleware.JwtAuthMiddleware method)
E
event_type (auth_middleware.services.AuditEvent attribute)
F
fetch_groups() (auth_middleware.providers.authz.cognito_groups_provider.CognitoGroupsProvider method)
,
[1]
(auth_middleware.providers.authz.groups_provider.GroupsProvider method)
(auth_middleware.providers.authz.sql_groups_provider.SqlGroupsProvider method)
fetch_permissions() (auth_middleware.providers.authz.permissions_provider.PermissionsProvider method)
(auth_middleware.providers.authz.sql_permissions_provider.SqlPermissionsProvider method)
G
get_client_id() (auth_middleware.services.M2MTokenDetector static method)
get_credentials() (auth_middleware.jwt_bearer_manager.JWTBearerManager method)
get_current_user() (auth_middleware.jwt_auth_middleware.JwtAuthMiddleware method)
(in module auth_middleware.functions)
get_groups_from_db() (auth_middleware.providers.authz.sql_groups_provider.SqlGroupsProvider method)
get_keys() (auth_middleware.providers.authn.cognito_provider.CognitoProvider method)
get_permissions_from_db() (auth_middleware.providers.authz.sql_permissions_provider.SqlPermissionsProvider method)
get_token_metadata() (auth_middleware.services.M2MTokenDetector static method)
GroupsProvider (class in auth_middleware.providers.authz.groups_provider)
H
has_groups() (in module auth_middleware.functions)
has_permissions() (in module auth_middleware.functions)
I
ip_address (auth_middleware.services.AuditEvent attribute)
is_m2m (auth_middleware.services.AuditEvent attribute)
is_m2m_token() (auth_middleware.services.M2MTokenDetector static method)
J
jwks_background_refresh (auth_middleware.providers.authn.jwt_provider_settings.JWTProviderSettings attribute)
jwks_background_refresh_threshold (auth_middleware.providers.authn.jwt_provider_settings.JWTProviderSettings attribute)
jwks_cache_interval (auth_middleware.providers.authn.cognito_authz_provider_settings.CognitoAuthzProviderSettings attribute)
jwks_cache_strategy (auth_middleware.providers.authn.jwt_provider_settings.JWTProviderSettings attribute)
jwks_cache_usages (auth_middleware.providers.authn.cognito_authz_provider_settings.CognitoAuthzProviderSettings attribute)
jwks_url_template (auth_middleware.providers.authn.cognito_authz_provider_settings.CognitoAuthzProviderSettings attribute)
jwt_algorithm (auth_middleware.providers.authn.jwt_provider_settings.JWTProviderSettings attribute)
jwt_secret_key (auth_middleware.providers.authn.jwt_provider_settings.JWTProviderSettings attribute)
jwt_token_verification_disabled (auth_middleware.providers.authn.jwt_provider_settings.JWTProviderSettings attribute)
JwtAuthMiddleware (class in auth_middleware.jwt_auth_middleware)
JWTBearerManager (class in auth_middleware.jwt_bearer_manager)
JWTProvider (class in auth_middleware.providers.authn.jwt_provider)
JWTProviderSettings (class in auth_middleware.providers.authn.jwt_provider_settings)
L
load_jwks() (auth_middleware.providers.authn.cognito_provider.CognitoProvider method)
(auth_middleware.providers.authn.jwt_provider.JWTProvider method)
log() (auth_middleware.services.AuditLogger method)
log_access_denied() (auth_middleware.services.AuditLogger method)
log_auth_failure() (auth_middleware.services.AuditLogger method)
log_auth_success() (auth_middleware.services.AuditLogger method)
M
metadata (auth_middleware.services.AuditEvent attribute)
method (auth_middleware.services.AuditEvent attribute)
model_config (auth_middleware.providers.authn.cognito_authz_provider_settings.CognitoAuthzProviderSettings attribute)
(auth_middleware.providers.authn.jwt_provider_settings.JWTProviderSettings attribute)
module
auth_middleware.exceptions
auth_middleware.functions
auth_middleware.jwt_auth_middleware
auth_middleware.jwt_bearer_manager
auth_middleware.providers.authn.cognito_authz_provider_settings
auth_middleware.providers.authn.cognito_provider
auth_middleware.providers.authn.jwt_provider
auth_middleware.providers.authn.jwt_provider_settings
auth_middleware.providers.authz.cognito_groups_provider
auth_middleware.types
P
path (auth_middleware.services.AuditEvent attribute)
PermissionsProvider (class in auth_middleware.providers.authz.permissions_provider)
R
require_groups() (in module auth_middleware.functions)
require_permissions() (in module auth_middleware.functions)
require_user() (in module auth_middleware.functions)
requires_user_context() (auth_middleware.services.M2MTokenDetector static method)
S
SqlGroupsProvider (class in auth_middleware.providers.authz.sql_groups_provider)
SqlPermissionsProvider (class in auth_middleware.providers.authz.sql_permissions_provider)
status_code (auth_middleware.services.AuditEvent attribute)
T
timestamp (auth_middleware.services.AuditEvent attribute)
to_dict() (auth_middleware.services.AuditEvent method)
to_json() (auth_middleware.services.AuditEvent method)
U
user_agent (auth_middleware.services.AuditEvent attribute)
user_id (auth_middleware.services.AuditEvent attribute)
user_pool_client_id (auth_middleware.providers.authn.cognito_authz_provider_settings.CognitoAuthzProviderSettings attribute)
user_pool_client_secret (auth_middleware.providers.authn.cognito_authz_provider_settings.CognitoAuthzProviderSettings attribute)
user_pool_id (auth_middleware.providers.authn.cognito_authz_provider_settings.CognitoAuthzProviderSettings attribute)
user_pool_region (auth_middleware.providers.authn.cognito_authz_provider_settings.CognitoAuthzProviderSettings attribute)
V
verify_token() (auth_middleware.providers.authn.cognito_provider.CognitoProvider method)
(auth_middleware.providers.authn.jwt_provider.JWTProvider method)