Check if an API key has the required scope and log usage.
Same as CheckAPIKeyScope but also logs the authorization attempt. Use this for operations where you want detailed audit trails.
The API key ID from context.userPayload.apiKeyId
The scope path required
The authenticated user
Details about the request for logging
Additional options for scope checking
ScopeAuthResult with authorization details and optional log ID
Check if an API key has the required scope and log usage.
Same as CheckAPIKeyScope but also logs the authorization attempt. Use this for operations where you want detailed audit trails.