-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go client's UpdateLogoutFlow doesn't deactivate session #255
Comments
Hard to tell what's going on here, but I did notice, that you're calling |
@Benehiko @jonas-jonas @aeneasr my code snippets resp, _, _ := is.oryAPI.FrontendApi.ToSession(ctx).Cookie(cookieString).Execute()
// Print true
rlog.Debug(fmt.Sprintf("Check session %+v", *(resp.Active)))
logoutFlow := is.oryAPI.FrontendApi.CreateBrowserLogoutFlow(ctx)
flow, res, err := logoutFlow.Cookie(cookieString).Execute()
if err != nil {
return
}
// Printed logout token and url
rlog.Warn(fmt.Sprintf("token logout %+v", flow))
// Err is returned
res, err = is.oryAPI.FrontendApi.UpdateLogoutFlow(ctx).Token(flow.LogoutToken).Execute()
if err != nil {
return
} Firstly, i've checked if that my session is indeed However, when i try to After some troubleshooting and manipulation of the go SDK code directly, i noticed that res, err = is.oryAPI.FrontendApi.UpdateLogoutFlow(ctx).Token(flow.LogoutToken).Cookie(cookieString).Execute() I added the following to
I'm unsure how to fix this, is it just adding the following chunk to |
Or do we fix it like this PR? |
Preflight checklist
Describe the bug
The session stays active after calling the FrontendApi.UpdateLogoutFlow with the logout token. 401 error returned.
Reproducing the bug
Code:
Relevant log output
Relevant configuration
No response
Version
oryd/kratos:v0.11.1. and github.com/ory/client-go v1.1.21
On which operating system are you observing this issue?
macOS
In which environment are you deploying?
None
Additional Context
No response
The text was updated successfully, but these errors were encountered: