Changes for version 0.0.3 - 2026-08-06

  • Added eg/api_key_protected_app.pl, a runnable example chaining PAGI::FastAPI::Security::APIKey with a lookup against a demo API key store, demonstrating the extract-then-verify pattern for header-based keys.
  • Added eg/basic_auth_protected_app.pl, a runnable example chaining PAGI::FastAPI::Security::HTTPBasic with a demo username/password store.
  • Added eg/oauth2_password_bearer_app.pl, a runnable example for PAGI::FastAPI::Security::OAuth2::PasswordBearer, including a toy POST /token endpoint that issues a signed JWT, so the full OAuth2 password grant flow can be exercised end-to-end. Notes that the token endpoint is application code, not something this distribution provides.
  • No changes to library code. All four schemes now have a matching eg/ example (HTTPBearer already had eg/jwt_protected_app.pl).

Documentation

Modules

Authentication scheme building blocks for PAGI::FastAPI
API key authentication scheme for PAGI::FastAPI
Internal base class for PAGI::FastAPI::Security schemes
HTTP Basic authentication scheme for PAGI::FastAPI
HTTP Bearer token scheme for PAGI::FastAPI
OAuth2 password-bearer scheme for PAGI::FastAPI