Repository navigation
Warn when the Volvo ID connection lasts only an hour - #379
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keycloak announces the refresh token's lifetime (refresh_expires_in): without "Remember me" ticked on Volvo's sign-in page, the session ends an hour after the authorization whatever the refreshes. The connection is kept, and the Connection page asks to connect again ticking the box; the button says so beforehand. The simulator announces the lifetime, and connect-sim accepts a short session. Co-Authored-By: Claude Opus 5.5 <[email protected]>
4 of 5 tasks
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 49 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Contributor
Author
|
@coderabbitai review |
Action not completed
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On the new Volvo ID, a sign-in without "Remember me" ticked gives a session that ends an hour after the authorization, however often it is refreshed (
refresh_expires_in=1800; 90 days with the box ticked, as measured in #253). Runsten now reads that lifetime when the user connects: when it is short, the vehicles are recorded all the same, and the Connection page asks the user to connect again, ticking the box. The Connect / Reconnect button says so beforehand.Changes
refresh_expires_in(Keycloak's field, a number or a string), zero when not announced.connection?volvo=short_session; runsten-api served alone tells it on its own page too.refresh_expires_in(its refresh token TTL):SIM_REFRESH_TOKEN_TTL=30m task run-simshows a short session, whichtask connect-simnow accepts.self-hosting/volvo.md, in "Connecting your Volvo ID" and the move to the new Volvo ID.Screenshots
SIM_REFRESH_TOKEN_TTL=30m): the warning, wheremainsays nothing.Tests
task unitpassed: fmt, lint (0 issues), Go tests without PostgreSQL, govulncheck, build; web lint, Vitest (1852 tests), audit, build.task connect-simcomes back withshort_session, the log tellsrefresh_expires_in=30m0s.task integrationandtask system(the CI runs them). Not checked on a real Volvo yet.Closes #320
🤖 Generated with Claude Code