Hey all. I recently joined a company where I am in...
# talk-kratos
c
Hey all. I recently joined a company where I am inheriting some apps which are wired up with a self-hosted instance of Ory/Kratos/Hydra. I have no prior experience with this stack, and I am running into some issues wiring everything up. Unfortunately, the people who originally set up this part of our stack and wrote the dev docs are no longer with the company, so I am having to figure things out on my own. I have things mostly working, as far as I can tell, but have hit a road block. Here is the setup I am working with: • Main app: React, built and served with Vite+SSL • Auth/SSO UI app: React, built and served with Vite+SSL • Ory stack: Docker+minikube All three apps are running correctly, including SSL: •
<https://local.app1>
<https://local.app2:444>
<https://local.login.stuff:4431>
<https://local.login.stuff:4432/admin>
I am able to successfully load the
<https://local.login.stuff:4431/.well-known/ory/webauthn.js>
URL, as well as
<https://local.login.stuff:4432/admin/identities>
. However, when my React app sends the user to
<https://local.login.stuff:4431/oauth2/auth?client_id=>...
, I get a 404 error. I suspect there is simply a mis-configuration on my part somewhere, but a combination of out-of-date docs and my unfamiliarity with Kratos has me at a road block. I know it isn't a DNS or
hosts
file problem, since I am able to load all three apps individually at their respective ports. Beyond that, I am at a loss. Any help would be greatly appreciated!
m
Hey @clean-printer-85443 sounds though, I hope you can figure it out! Here are a few steps you can take to troubleshoot: 1. Check the Ory Hydra and Ory Kratos logs: The logs can provide valuable information about what might be going wrong. You can check the logs by running
docker logs <container-name>
command. For example,
docker logs ory-hydra-example--hydra
for Ory Hydra. Source 2. Check the configuration of your Ory services: Make sure that the environment variables and other configurations are set correctly. For example, the
ORY_SDK_URL
should be set to the correct URL of your Ory project. Source 3. Check the OAuth 2.0 flow: Make sure that the OAuth 2.0 flow is set up correctly. The
/oauth2/auth
endpoint is part of the OAuth 2.0 flow, and a 404 error might indicate an issue with the flow. Source 4. Check the UI configuration: If you're using a custom UI, make sure that it's configured correctly to work with Ory. Source
c
Thanks for the links. I'll dig into these and see where the rabbit hole leads