Hey! Have two social sign-ins setup for our accoun...
# ory-network
q
Hey! Have two social sign-ins setup for our account. Using Postman to login to the accounts, one of the social sign in is working, but the other one is giving the error below. The Sign-in through the UI works.
Copy code
{
  "id": "1eb0407c-60c9-4ab4-9e03-3b1867185b70",
  "error": {
    "code": 500,
    "debug": "400 Bad Request",
    "details": {
      "status_code": 400
    },
    "message": "An internal server error occurred, please contact the system administrator",
    "reason": "Unable to accept OAuth 2.0 Login Challenge.",
    "status": "Internal Server Error"
  },
  "created_at": "2023-01-10T08:14:45.454425Z",
  "updated_at": "2023-01-10T08:14:45.454425Z"
}
Login challenge sent:
bdd41a3f4e7c48418c563550e4d84465
p
Hi @quiet-window-70232 Which social sign in providers are you testing?
q
AWS Cognito and Microsoft SSO. The one that gives an error is the AWS Cognito one.
@proud-plumber-24205 is there a chance I could access my Ory logs so I can debug this myself 🤔
p
Unfortunately we do not expose any project logs as of this moment. Are you adding AWS Cognito as a generic social sign in provider?
Another way is to configure aws cognito on a quickstart kratos config and run it locally then tranfser the same settings to the Ory Network project since it's virtually the same.
q
Yep. Adding AWS Cognito as social sign in provider. It used to work, broke it somehow sadkek
Another way is to configure aws cognito on a quickstart kratos config and run it locally then tranfser the same settings to the Ory Network project since it's virtually the same.
You mean for debugging purposes?
p
Yes
Here is an example, you should just change some of the URLs since it is assumed to be running inside docker. but you can run it without docker https://github.com/ory/kratos/tree/master/contrib/quickstart/kratos/oidc
q
Thank you very much. Will look into it and try to debug that way 🙏
Hey! Two things regarding this. 1. I've setup Kratos locally and configured the Generic OIDC with AWS Cognito. It works locally without any problems. Could not test the oAuth flow with Hydra, because I could not figure out how to connect Local Hydra to Local Kratos. 2. I've noticed that this error goes away when I clear my cookies. So I think that this is not a configuration error on my part, but there is some issue with Ory Network which that causes undeterministic errors. I can provide error ids, if someone would be willing to look into the issue on your side.