<@U04UQ68083H> I am using OIDC, if I try to sign-i...
# ory-copilot
a
@chilly-king-10285 I am using OIDC, if I try to sign-in I receive the following message but no response error: Could not find a strategy to log you in with. Did you fill out the form correctly?
b
A message from kapa.ai
Based on the information provided in the knowledge sources, the error message you're encountering is a known UI message in Ory Kratos. This specific error is identified with the code 4010002 and is related to login strategies. Here's what we know about this error:
Copy code
json {     "id": 4010002,     "text": "Could not find a strategy to log you in with. Did you fill out the form correctly?",     "type": "error"   }
This error message typically appears when Kratos is unable to determine a valid strategy to authenticate the user [Kratos UI Messages](https://www.ory.sh/docs/kratos/concepts/ui-messages#could-not-find-a-strategy-to-log-you-in-with-did-you-fill-out-the-form-correctly-4010002). However, the knowledge sources don't provide specific information about why this error occurs in the context of OIDC or how to resolve it. It's possible that there might be an issue with your OIDC configuration or the way the login flow is set up. Given the limited information in the provided knowledge sources about this specific scenario with OIDC, I cannot provide a definitive solution. You might want to check your OIDC configuration and ensure that all required parameters are correctly set up. If the issue persists, you may want to consult the Ory documentation for more detailed troubleshooting steps related to OIDC integration, or reach out to Ory support for further assistance.
a
@chilly-king-10285 this message only happens when using an incognito browser and using OIDC: Could not find a strategy to log you in with. Did you fill out the form correctly?
b
A message from kapa.ai
Based on the information provided in the knowledge sources and your additional context about the error occurring specifically in incognito mode with OIDC, I can offer some insights. The error message you're seeing is indeed a known UI message in Ory Kratos, as previously mentioned:
Copy code
json {     "id": 4010002,     "text": "Could not find a strategy to log you in with. Did you fill out the form correctly?",     "type": "error"   }
[Kratos UI Messages](https://www.ory.sh/docs/kratos/concepts/ui-messages#could-not-find-a-strategy-to-log-you-in-with-did-you-fill-out-the-form-correctly-4010002) The fact that this error only occurs in incognito mode suggests that it might be related to cookie handling or session management. Incognito mode typically doesn't store cookies between sessions and may have stricter privacy settings. While the knowledge sources don't provide specific information about this error in relation to incognito mode and OIDC, there's a relevant issue in the Ory Kratos GitHub repository that might shed some light on the problem. In [this issue](https://github.com/ory/kratos/issues/3653), a user reported a similar problem with OIDC login after switching domains. The error message in the logs mentions: "The browser does not contain the necessary cookie to resume the session. This is a security violation and was blocked. Please clear your browser's cookies and cache and try again!" This suggests that the error might be related to cookie handling, which aligns with the behavior you're seeing in incognito mode. Unfortunately, the knowledge sources don't provide a definitive solution for this specific scenario. However, based on the available information, you might want to consider the following: 1. Check your OIDC configuration, especially settings related to cookie domains and secure flags. 2. Ensure that your application is properly handling cross-origin requests if applicable. 3. Review your Kratos configuration, particularly the
cookies
settings, to ensure they're compatible with incognito browsing. If the issue persists, you may need to investigate further by examining the Kratos logs for more detailed error messages when the problem occurs. Additionally, reaching out to Ory support or posting a detailed issue on the Ory Kratos GitHub repository might help in getting a more specific solution to this problem.