Add session idle lifetime and make session lifetime doubles#423
Conversation
|
As I stated in the PR, I modified an Integer to a Double. Do you consider this to be an issue? If yes, to you have an alternative to propose to still have the possibility to use a |
|
👋 Hi @pelletier197, thanks for the PR. I looked at the schema of the tenants API, and the We should add support for Regarding the change from Thanks! |
|
@jimmyjames That is quite strange. I get the same error as you now. I swear that this code worked 2 days ago 🤔 🤔 🤔 🤔 What is even weirder is that, in the UI, when you go in the This is the answer I get when I call the management API: But you are right, you are only able to do the PATCH with an int.. Feels like the issue is on the Auth0 API then, wouldn't it? Now here's what I propose:
I still won't be able to use the API cause I need the timeout to be 30 minutes to respect our pen-tester recommendations, but we did it manually in the UI for now.. Thanks a lot! |
|
Thanks @pelletier197, yes I see the same behavior you are reporting. It is confusing 😕 Sometimes the dashboard will use non-public APIs; that may be what's happening here. It is unfortunate that the API will return a double when the lifetime is set through the UI to be fractions of hours, but I think your assessment of keeping it an int aligns with the public API and is probably the best we can do for now. I'll think about it a bit then review the specific changes. Thanks for raising and providing all the details 🙇 |
|
@poovamraj would you mind reviewing this PR while I'm out? As you can see from the conversation, there is a discrepancy between the API behavior and the dashboard UX. Given that the API only works in whole hours, I think adding support for the session idle lifetime as an integer makes sense. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇♂️ |
…double-session-lifetime
|
@jimmyjames any news ? I don't really need this much anymore, but any reason not to merge it? Otherwise, I'll close it. Thanks! |
|
Hey @pelletier197, apologies for the delay while I was away. I'm going to look into this again this week and see if this change is something we can do, or if it's something we can't adequately address in the SDKs. Thanks! |
…double-session-lifetime
jimmyjames
left a comment
There was a problem hiding this comment.
Just an update to the javadocs requested, otherwise looks good. Thanks!


Changes
inttodouble, it's a breaking change. A pretty small one, but still.References
Here is an example on my tenant that session lifetime and idle session lifetime can be double
Testing
Sample code
Should output
Checklist