ExMCP.Authorization.Issuer (ex_mcp v1.0.0-rc.8)

Copy Markdown View Source

Exact authorization-server issuer comparison.

OAuth issuer identifiers are compared as identifiers, not as URLs to be normalized. In particular, ExMCP does not add or remove trailing slashes, rewrite paths, fold case, or otherwise canonicalize issuer values before comparing them.

Summary

Functions

Compares two issuer identifiers byte-for-byte.

Types

mismatch()

@type mismatch() ::
  :missing_expected_issuer
  | :missing_authorization_server_issuer
  | {:issuer_mismatch, keyword(String.t())}

Functions

compare(issuer, issuer)

@spec compare(String.t() | nil, String.t() | nil) :: :ok | {:error, mismatch()}

Compares two issuer identifiers byte-for-byte.