most-river-7586
11/22/2023, 9:10 AM<kratos-public-url>/self-service/methods/oidc/callback/:providerId
it's not documented in the Kratos HTTP API docs, but is referenced in the social-sign-in troubleshooting page
For context, I'm following these docs for a generic provider (Okta in this case): https://www.ory.sh/docs/kratos/social-signin/generic
and I have my app redirecting to the following URL to sign in via Okta:
<https://my-okta-login.example.com/oauth2/v1/authorize?client_id=${oidcClientId}&redirect_uri=${publicKratosBaseUrl}/self-service/methods/oidc/callback/okta-test&response_type=code&scope=email+profile+openid&state=ZDNmYjk2NzktZmUyMS00NTY1LThjNGUtYjg5MzVjNGY1OTJmOnNvbWVkYXRh>
(note the redirect_uri
is using the Kratos endpoint in question)
But after logging into Okta, I'm seeing a No active session was found in this request
error in the Kratos logs and no ory_kratos_session
cookies is set. What could I be missing?
See thread below for my configs and Kratos debug log output.
Kratos image: oryd/kratos:v1.0.0
most-river-7586
11/22/2023, 9:11 AMmost-river-7586
11/22/2023, 9:11 AMbland-eye-99092
11/22/2023, 9:14 AMmost-river-7586
11/22/2023, 9:24 AMregistration:
lifespan: 10m
ui_url: <http://127.0.0.1:4455/registration>
after:
oidc:
hooks:
- hook: session
but I'm still getting the same error 🤔most-river-7586
11/22/2023, 9:26 AM<http://127.0.0.1:4433/self-service/methods/oidc/callback/okta-test>
, I'm seeing the same Kratos errors above, and it's still returning a 303 redirect to <http://127.0.0.1:4455/error?id=2c3583ab-0356-401c-ba9e-a645e8ba6a6f>
bland-eye-99092
11/22/2023, 9:26 AMbland-eye-99092
11/22/2023, 9:27 AMmost-river-7586
11/22/2023, 9:27 AMory_kratos_session
cookie?bland-eye-99092
11/22/2023, 9:28 AMmost-river-7586
11/22/2023, 9:29 AMmost-river-7586
11/22/2023, 9:29 AMkratos-kratos-selfservice-ui-node-1
pod's logs as well)bland-eye-99092
11/22/2023, 9:30 AMmost-river-7586
11/22/2023, 9:32 AMbland-eye-99092
11/22/2023, 9:33 AMmost-river-7586
11/22/2023, 9:35 AMmost-river-7586
11/22/2023, 9:37 AMselfservice.flows.login.after.oidc
?
(just guessing at this point)bland-eye-99092
11/22/2023, 9:37 AMmost-river-7586
11/22/2023, 10:04 AMmost-river-7586
11/22/2023, 7:23 PMstate
query param that I'm passing through to that /self-service/methods/oidc/callback/okta-test
endpoint.
I left a comment with some details here:
https://github.com/ory/kratos/issues/3635#issuecomment-1823376941