Hi @Tony Lunt
Apology for your inconveniences.
When using Azure Static Web Apps, dynamic parameters like login_hint are expected to be passed to the authentication provider via the URL during authentication. If the login_hint parameter is not making it through the redirects, this may be related to how Azure Static Web Apps manages the authentication process.
If your configuration does not specifically support preserving login_hint, the initial redirect to the login endpoint might drop this parameter. It's important to verify that your authentication provider is set up to accept and process login_hint. If adding login_hint manually to the final URL works, it suggests that Azure Static Web Apps is not retaining it throughout the authentication steps.
To resolve this, check that your authentication provider allows login_hint, review your Azure Static Web Apps authentication settings for anything affecting parameter forwarding, and consult Azure documentation or support for further guidance on this issue.
References:
- Custom authentication in Azure Static Web Apps
- Microsoft identity platform and OAuth 2.0 implicit grant flow
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please free to reach out to me.