@Geralt Li
Thank you for your post and for sharing your error message!
Error Message:
AADSTS50011: The redirect URI 'xxxx' specified in the request does not match the redirect URIs configured for the application 'xxxxx'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.
From your error message details I looked into our logs, and the redirect URL that your application sent doesn't match any of the redirect URLs that're registered on your application.
Redirect URL that your application sent:
https://domain.name.com/api/.....?state=https://domain.name.com/en
Application Registered URL:
https://domain.name.com/api/.....
--------------------------------
To fix the issue - if the redirect URL that your application sent is correct, copy the URL value from the error message and add the redirect URL to your Azure AD Application. For more info - AADSTS50011 Resolution.
If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.
----------
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.