Commit Graph

5 Commits

  • refactor(auth): simplify inline API key provider logic and improve configuration consistency
    - Replaced `SyncInlineAPIKeys` with `MakeInlineAPIKeyProvider` for better clarity and reduced redundancy.
    - Removed legacy logic for inline API key syncing and migration.
    - Enhanced provider synchronization logic to handle empty states consistently.
    - Added normalization to API key handling across configurations.
    - Updated handlers to reflect streamlined provider update logic.
  • refactor(access): migrate to SDKConfig for authentication and provider management
    - Replaced `config.Config` with `SDKConfig` in authentication and provider logic for consistency with SDK changes.
    - Updated provider registration, reconciliation, and build functions to align with the `SDKConfig` structure.
    - Refactored related imports and handlers to support the new configuration approach.
    - Improved clarity and reduced redundancy in API key synchronization and provider initialization.
  • feat(auth): introduce auth.providers for flexible authentication configuration
    - Replaced legacy `api-keys` field with `auth.providers` in configuration, supporting multiple authentication providers including `config-api-key`.
    - Added synchronization to maintain compatibility with legacy `api-keys`.
    - Updated core components like request handling and middleware to use the new provider system.
    - Enhanced management API endpoints for seamless integration with `auth.providers`.