I'm trying to integrate kratos and hydra self-host...
# talk-kratos
s
I'm trying to integrate kratos and hydra self-hosted for an oidc registration. I run the following requests in Postman: GET http://localhost:8080/idy/oauth2/auth?client_id=d87bf647-11ee-4a20-92b3-25b54d0a78a5&redirect_uri=http://localhost:8080/idy/ui&response_type=code%20id_token&state=763fdbfe-034a-11ee-b43b-efe0b7dba1ed GET http://localhost:8080/idy/self-service/registration/browser?login_challenge=CbS_rWLnIhVR1NJWi1ZyiqkARR0pZ2emf6I4k8MPSmkwE08vaUnFKwoEkeRe9tUf8EAltmSMWwRYIDv8zi1qzkBlKw7qqzKzU8pwb4ApVwt7n0dBEcfacAFdVQVc-7PGHm43M0wIzwSdoHEsaEFMlk3zImcDcY_4gcPadCyfDt-5nDJVg5w-Dmpu9KoLKjgU-0TB845WhTB_DWj3XQghuGcWe9J3qoRPWlG8qxZBGDk8jGN_gRYZuDMGQsH_pnF2PjBWV-R2EghnwBfe6IQCNEsyWQ-3XKZd5FUTFFnQVQUSIBIP21UNBAktX6Kwir9sAwqnQ_Vh4MWDYmPT0CAcKAjXT8DgbseHQGeD5HeED53kKBVFpJl4bn3jEf7x5DR9nSOXms0zJZiSWU-yi06TRofbja_gWxF0P4Wrxqdu7oHqHgocIztDWG4S-Pj0fjDyl1qfGscvEwVT_AYU6jZnG2nYF0O9si2ecVStdmP7b5Dw1gJ4TuICi3l67hRQkDtxlEY0xFZvoj7GSmECRtddj9D3rXIS3a9oQtae4ajSSBgfEU-zsNDHdesODJ4qFGg9rxfibcCUjs79fFsR-AG2ah5y05AisZUMa_7jQOutz8FHWHMBH7J3li1T8ysEONeV3PfvM_1iypKroR1VqXcajI7mSlf8WpvtR-BYKoLQXUzdjURVH72EtWicz96JRhG_n_7wLL3NtzUf1-IKMUK8g2fzwwSJACcN4dM_ANfWALDGN4rElsWFo4uz_QObOEWSzKFPy4MVE5sTznF7i2T5sjiUtyuiprp64o3-2rf1QAJUynWkzmvPEOR_jFCD_txXUBjJ6WAy1Vrb4u-qR4BVZNTlG0YmEWbDJcSYkgQhSuA5E83B-mn5DtW0s9mCdTT0o6TRFO-N_IOOKd-UXR8qHW16tAwHx_IdlCLSCdatac0rkdto6Ls5FatKwnzQ0QPTDsDMUEs_oqvOnipq2tiiQTRr2_UY5QVDCEQG2EffuKq8VVkC11zNqj82WpqRTe6CT0GJnlOrGcKC59bgvwjIo9tXOyOOq_7e30zFEu3Vaxbf_7KR1SFXju4yuQQQRwc0inf9kkOQzsXpAKkfJSb9kIahTFuPkZZ2ZknbQIsVvRxmeK7NjiJd-AT8Ymc48Z-9LUje2rRXJVrp7gAj0DKQqB-BUZnBoUsUvzL6pjlGDQQYiQtc6jKMzDhpGjlqpn6Np9iKFDd_kq7Bm6rDb4B47BPxvVXjtMkamawwF-SbzVb3ucX9BhcpowXkFXBh1nXrWVL6Q7gD9UlssIIm2duQvVid3bPGnfbJUpnLETNShQ%3D%3D&return_to=http://localhost:8080/idy/ui GET http://localhost:8080/idy/self-service/registration?flow=f510bdd5-f373-4c6e-9e82-e73b3ffdc468 (Please note The bases of the URLs is because of an API gateway in front of hydra and kratos.) I get teh following error in the kratos logs with a stack trace:
server-kratos-1              | time=2023-08-22T10:38:03Z level=info msg=Encountered self-service flow error. audience=
audit error=map[message:I[#/] S[] could not find a strategy to sign up with stack_trace:
server-kratos-1              | <http://github.com/ory/kratos/selfservice/flow/registration.(*Handler).updateRegistrationFlow|github.com/ory/kratos/selfservice/flow/registration.(*Handler).updateRegistrationFlow>
server-kratos-1              |         /project/selfservice/flow/registration/handler.go:598
server-kratos-1              | <http://github.com/ory/kratos/session.(*Handler).IsNotAuthenticated.func1|github.com/ory/kratos/session.(*Handler).IsNotAuthenticated.func1>
server-kratos-1              |         /project/session/handler.go:871
server-kratos-1              | <http://github.com/ory/kratos/x.NoCacheHandle.func1|github.com/ory/kratos/x.NoCacheHandle.func1>
server-kratos-1              |         /project/x/nocache.go:21
... I have the following methods in my kratos.yml file:
methods:
password:
enabled: true
oidc:
enabled: true
config:
providers:
- id: hydra
label: Ory
provider: generic
client_id: ${OIDC_HYDRA_CLIENT_ID}
client_secret: ${OIDC_HYDRA_CLIENT_SECRET}
issuer_url: <http://localhost:8080/idy/>
auth_url: <http://hydra:4444/oauth2/auth>
token_url: <http://hydra:4444/oauth2/token>
scope:
- offline
mapper_url: <file://etc/config/kratos/hydra.jsonnet>
m
s
No, I'll check that out