ExMCP.Security.Consent (ex_mcp v0.10.0)

View Source

Manages user consent for various operations.

This module is responsible for ensuring that user consent has been obtained before proceeding with sensitive actions.

Summary

Functions

Ensures user consent is obtained before accessing an external resource.

Functions

ensure_user_consent(user_id, url, transport, handler, config)

@spec ensure_user_consent(
  ExMCP.ConsentHandler.user_id(),
  String.t(),
  atom(),
  module(),
  map()
) :: :ok | {:error, :consent_denied | :consent_required | :consent_error}

Ensures user consent is obtained before accessing an external resource.