swift-island-66287
02/28/2023, 4:49 AMsessions, r, err := instance.OryClient.Kratos.IdentityApi.ListSessions(ctx).Execute()
swift-island-66287
02/28/2023, 4:50 AMGetIdentity
swift-island-66287
02/28/2023, 5:53 AM<http://127.0.0.1:4434/admin/identities/>
<http://127.0.0.1:4433//admin/sessions/>
it seems that the second call is using the public url.
I guess I’ll create two clients, instead of using two urls, as suggested in the docs.swift-island-66287
02/28/2023, 6:10 AM<http://127.0.0.1:4434/admin/admin/sessions/>
swift-island-66287
02/28/2023, 6:21 AMbland-eye-99092
02/28/2023, 7:42 AMpublic
client for admin queries as well.
Looking at the URLs you posted, there seems to be an added slash (/
) before the path in the /admin/sessions
URL. That is most likely the issue.swift-island-66287
02/28/2023, 7:43 AMbland-eye-99092
02/28/2023, 7:43 AMswift-island-66287
02/28/2023, 7:43 AMswift-island-66287
02/28/2023, 7:47 AM