I am trying to implement refresh session following...
# ory-network
c
I am trying to implement refresh session following this documentation However, when i update my yaml file with the
earliest_possible_extend
property, the yaml file does not update. Also, I cannot find anywhere on the dashboard to update this. Is there another way to do refresh session apart from this? if no, How do I set earliest_possible_extend?
m
Hello @cool-pilot-67808
when i update my yaml file with the
earliest_possible_extend
property, the yaml file does not update.
Do you mean when you edit the configuration that you got from the Ory CLI with
ory get
? Can you share the exact commands that you are running? I think at the moment you can't configure this in the Console, but it is being planned to be added. For the time being you will need to use the Ory Cli to update this setting.
c
Hey @magnificent-energy-493 Am trying to update my the config file am getting using this
Copy code
ory get identity-config p<project id>format yaml
Then I update using this
Copy code
ory update identity-config --project <project-id> --workspace <workspace-id> --file identity-config.yaml
But after updating, the ``earliest_possible_extend` is not reflecting
b
earliest_possible_extend
is not exposed in the Ory network for reliability reasons. Why do you need to change this value?
c
Am looking for a way to either extend a session or refresh a session without asking the user to authenticate again
Screenshot 2025-07-22 at 12.49.38.png
b
Just extending the session without setting this configuration value explicitly doesn't work?
c
Yeah, it doesn't work.
b
doesn't work meaning, the session isn't extended?
c
https://{project_slug}.<http://projects.oryapis.com/admin/sessions/{id}/extend|projects.oryapis.com/admin/sessions/{id}/extend>
I want to use this endpoint to be able to extend user sessions. One of the requirements for it to work as per the documentation is to provide
session.earliest_possible_extend
. The bit shared before details how the value is set. Unfortunately, the yaml file is not updating, so the value is never set. As a consequence, we get a
404
error.
And the session is not extended.
b
The endpoint is always available, it's just not possible to set the value. Could you post the actual error's response content? And possibly, the Cf-Ray header from the response?
c
I get this message
error: Error extending session 2e70bbac-3f32-4903-9077-cd074d5b1980: 404 page not found
What's the alternative way of setting the
earliest_possible_extend
b
I can't see any requests on that endpoint matching that session ID in the last hour. Did you make this request recently?
c
Yes. just did it a few mins ago.
b
This means, that the request doesn't even reach our services. Could you double check the request method, it should be PATCH.
d
I am experiencing the same issue.
b
Hi, as I said above, it's not possible to set the configuration on the Ory Network. If you send me the
Cf-Ray
header from the session extension request, I can check your case as well.
d
A moment @bland-eye-99092
b
also please include the exact response content from the request.
d
Okay.
There's no
Cf-Ray
in the header. this is the "sessionId": "dc72e5cf-3d80-407a-944f-0690acba914f". I instead get a 404 error.
b
I instead get a 404 error.
what's the response content of that response?
d
404 page not found
b
The route should be
/admin/sessions/{id}/extend
🙂 You're requesting
/admin/identities/sessions/{id}/extend
d
Oh yeah, was using this
/admin/identities/sessions/${sessionId}/extend
So, do I still need to set the
earliest_possible_extend
@bland-eye-99092?
b
no, that's not possible on the Ory Network.
d
So I can call the extension at anytime?
b
yes
✅ 1
d
Thanks a lot, lemme test the change.