MCP PHP SDK

OAuth

Table of Contents

Interfaces

AuthorizationTokenValidatorInterface
Validates bearer tokens for HTTP transports.
ClientRegistrarInterface
Interface for OAuth 2.0 Dynamic Client Registration (RFC 7591).
JwksProviderInterface
Contract for loading JWKS key sets used for JWT signature verification.
OidcDiscoveryInterface
Contract for resolving OAuth/OIDC endpoint metadata from an issuer.
OidcDiscoveryMetadataPolicyInterface
Validation policy for OIDC discovery metadata.

Classes

AuthorizationResult
Describes the outcome of an authorization decision.
JwksProvider
Loads JWKS key sets from explicit URI or discovered issuer metadata.
JwtTokenValidator
Validates JWT access tokens using JWKS from an OAuth 2.0 / OpenID Connect provider.
LenientOidcDiscoveryMetadataPolicy
Lenient metadata policy for identity providers that omit code_challenge_methods_supported from their OIDC discovery response despite supporting PKCE (e.g. FusionAuth, Microsoft Entra ID).
OidcDiscovery
Discovers OAuth 2.0 / OpenID Connect authorization server metadata.
ProtectedResourceMetadata
OAuth 2.0 Protected Resource Metadata (RFC 9728).
StrictOidcDiscoveryMetadataPolicy
Default strict policy for OIDC discovery metadata validation.

        
On this page

Search results