wooden-cartoon-49455
06/12/2025, 9:28 AM401 Unauthorized
with id: session_inactive
when calling the /self-service/settings
flow (browser) to link a Google account, even though the user has a valid active session(whoami
returns 200)
Reproduction Steps:
User logs in (browser flow), session is active, cookie ory_kratos_session=...
is present in all requests.
User opens the settings flow: GET /self-service/settings/browser
Kratos serves the settings form as expected.
User submits OIDC link request (via POST) using the flow.ui.action
and method=oidc
& link=google
Kratos responds with (after user selected his account on google page):
{
"error": {
"id": "session_inactive",
"code": 401,
"status": "Unauthorized",
"reason": "No active session was found in this request."
}
}
Really interesting issue that I don't know how to overcome (OIDC works perfectly for the login flow).
We are using self-hosted Ory Kratos v1.1.0.wooden-cartoon-49455
06/13/2025, 3:40 PM