MCP PHP SDK

AuthorizationHandlerInterface

Takes the user to the authorization endpoint and returns the answer of the authorization server.

Tags
author

Christopher Hertel mail@christopher-hertel.de

Table of Contents

Methods

authorize()  : array<string, string>
Send the user to $authorizationUrl and return the query parameters of the redirect to $redirectUri, unchecked.

Methods

authorize()

Send the user to $authorizationUrl and return the query parameters of the redirect to $redirectUri, unchecked.

public authorize(string $authorizationUrl, string $redirectUri) : array<string, string>
Parameters
$authorizationUrl : string
$redirectUri : string
Tags
throws
AuthorizationException

when the user could not be sent, or did not come back

AuthorizationPendingException

to persist the flow and redirect from a web application

Return values
array<string, string> —

the callback's query parameters

On this page

Search results