Microsoft Entra ID External Authentication Method

I need to implement an external authentication method for Microsoft Entra ID using PHP, but I haven’t found much documentation on it.

According to the documentation, to add an External Authentication Method (EAM), we need to provide:

Client ID
Discovery Endpoint
App ID

Here are the relevant links:

Managing External Authentication Methods
Concept of External Authentication Method Providers

My question is: Do we need to generate the discovery endpoint on the PHP authorization server itself, or is this the URL we obtained while creating the application in Entra: https://login.microsoftonline.com/<tenant_id>/v2.0/.well-known/openid-configuration?

registered the app in portal.azure.com for client id and secret