Managing external identities to enable secure access for partners, customers, and other non-employees
The error AADSTS165000 indicates that the request is missing required tokens for the user context. This often occurs when the authentication flow does not maintain the necessary session state across requests. When using both domain_hint=Google and login_hint, it seems that the flow may be skipping some steps that are required to maintain the session context, particularly after the initial sign-up.
Here are a few suggestions to troubleshoot and potentially resolve the issue:
- Check Session State: Ensure that the session cookies are being maintained properly between requests. If the session is lost, the
login_hintmay not be able to retrieve the necessary context. - Use
login_hintCarefully: Since you mentioned that removinglogin_hintallows the login to succeed, consider using it only when necessary. For subsequent logins, you might want to rely on the session state rather than explicitly passinglogin_hint. - Review User Flow Configuration: Double-check the configuration of your user flow in Microsoft Entra External ID to ensure that all required parameters are set correctly and that the flow is designed to handle the direct login scenario.
- Testing with Different Scenarios: Try testing the login process with different user accounts or configurations to see if the issue persists across all scenarios or is isolated to specific accounts.
- Consult Documentation: Review the Microsoft documentation regarding the use of
domain_hintandlogin_hintto ensure that you are following best practices and that there are no additional requirements for your specific setup.
If the issue continues, consider reaching out to Microsoft support for more tailored assistance regarding the Entra External ID and Google authentication integration.
References: