witty-actor-17128
07/24/2022, 3:05 PMhydra:4444
(as container name), requests from Kratos to Hydra are successful, but redirections are not (since the browser doesn't recognize <http://hydra:4444/>...
On the other hand, when I set the public host to localhost:4444
, redirects are fine but direct requests from Kratos to Hydra are obviously failing with "connection refused" user-facing self-service error.
In both cases, the login & consent flow is interrupted.
How should I configure docker-compose, kratos and hydra so it would work? I've looked at some references from the past, but for some reason I can't find one with an up to date Kratos configurations file. At least, none of the examples for the integration contains a methods.oidc part in the YML file.proud-plumber-24205
07/25/2022, 8:45 AMable-glass-7253
07/25/2022, 10:07 AMhydra
to the IP 127.0.0.1 (on linux you'd just add a line to /etc/hosts
)witty-actor-17128
07/27/2022, 10:59 AM...
urls:
self:
public: <http://hydra:4444>
issuer: <http://hydra:4444>
...
...
webfinger:
oidc_discovery:
token_url: <http://hydra:4444/oauth2/token>
auth_url: <http://localhost:4444/oauth2/auth>
...
In kratos.yml:
...
oidc:
enabled: true
config:
providers:
- id: "hydra"
mapper_url: file:///etc/config/kratos/oidc.hydra.jsonnet
issuer_url: <http://hydra:4444/>
auth_url: <http://hydra:4444/oauth2/auth>
token_url: <http://hydra:4444/oauth2/token>
scope:
- openid offline
provider: generic
...
That works (for some reason)