Expand description
Static AuthN Resolver Plugin
This plugin provides static token-to-identity mapping for development and testing.
§Modes
-
accept_all(default): Accepts any non-empty token, returns configured default identity. Replaces theauth_disableduse case for scenarios that still need aSecurityContext. -
static_tokens: Maps specific tokens to specific identities. Useful for E2E tests with distinct users.
§Configuration
modules:
static_authn_plugin:
config:
vendor: "hyperspot"
priority: 100
mode: accept_all
default_identity:
subject_id: "11111111-6a88-4768-9dfc-6bcd5187d9ed"
subject_tenant_id: "00000000-df51-5b42-9538-d2b56b7ee953"
token_scopes: ["*"]
tokens: []Re-exports§
pub use module::StaticAuthNPlugin;