Hello everyone, we're considering Ory as a replacement for our Supabase auth, as we need to suport multiple external third party social logins for our partners. We want a centralized identity system and possibility to add other login options and show/hide them depending on certain parameters. For this, we will implement custom UI and I think that part is mostly doable. What I'm having issues with though, is adding external Ory project as a social login provider(one of our partners is using Ory already, we want their account being one of our login options).
I have a
main project(with some custom UI based on one of samples, deployed on vercel):
https://kratos-nextjs-react-example-psi.vercel.app/api/.ory/ui/login
and an
external project(with default Account Experience):
https://competent-shtern-tm90112who.projects.oryapis.com
I have created OAuth Client in external, took the client id and secret and used it to register external project within main as a Social Sign-In, but when I try to use it to login, I land on a 500 page with:
{
"id": "de3a9a13-a38b-4640-9552-8365ca6dda47",
"error": {
"code": 500,
"message": "An internal server error occurred, please contact the system administrator",
"reason": "Unable to initialize OpenID Connect Provider: Get \"/.well-known/openid-configuration\": unsupported protocol scheme \"\"",
"status": "Internal Server Error"
},
"created_at": "2024-06-26T07:24:12.408238Z",
"updated_at": "2024-06-26T07:24:12.408238Z"
}
What have I configured wrong here? For both apps /.well-known/openid-configuration seems accessible just fine, we use hosted Ory versions, so no custom configuration or anything, it's mostly all out of the box. As a guess we've even redirected main's /api/.ory/.well-known/openid-configuration to /.well-known/openid-configuration in case the issue was this missing in root, but still nothing.