AADSTS50050: Discovery request is not in the expected format
The discovery request is not in the expected format.
What to check
- Inspect the discovery URL and parameters for missing values or encoding errors.
Official reference
Microsoft Learn: AADSTS error codes
Microsoft error lookup
Message summary: The discovery request is not in the expected format.
Fields in the message template: {name}.
Microsoft remediation: Ask the application owner to check how the app builds this request.