Expand description
Authentication and authorization types for perfgate.
Provides API key management, permission scopes, and role-based access control types used by the perfgate baseline service.
Part of the perfgate workspace.
§Example
use perfgate_auth::{generate_api_key, API_KEY_PREFIX_LIVE};
let key = generate_api_key(false);
assert!(key.starts_with(API_KEY_PREFIX_LIVE));Structs§
Enums§
Constants§
- API_
KEY_ PREFIX_ LIVE - API key prefix for live keys.
- API_
KEY_ PREFIX_ TEST - API key prefix for test keys.
Functions§
- generate_
api_ key - Creates a new API key string.
- validate_
key_ format - Validates API key format.