Skip to content

Re-enable automaticSilentRenew on OidcAuthProvider#5937

Open
samsondav wants to merge 3 commits into
canton-network:mainfrom
Avro-Digital:sam-avro/issue-5682-silent-renew
Open

Re-enable automaticSilentRenew on OidcAuthProvider#5937
samsondav wants to merge 3 commits into
canton-network:mainfrom
Avro-Digital:sam-avro/issue-5682-silent-renew

Conversation

@samsondav

@samsondav samsondav commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

PR #5545 disabled automaticSilentRenew when removing the global offline_access scope. Keycloak still issues a session-bound refresh token without that scope, so silent renew can use the refresh_token grant and users are no longer forced back to the IdP on every short access-token expiry (default 5 minutes).

Fixes #5682

Change

Re-enable automaticSilentRenew on OidcAuthProvider.

Testing

AuthProvider.test.tsx mocks react-oidc-context and asserts automaticSilentRenew: true is passed through. Also covers the hs256-unsafe short-circuit path.

Note

This is the minimal fix Pawel asked for in lieu of #5683, which adds per-IdP enable_offline_scope configuration and operator docs. Auth0 deployments that require offline_access to receive a refresh token may still need a follow-up if silent renew does not work there without that scope.

@pawelperek-da pawelperek-da left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Signed-off-by: Sam Davies <sam@avrofi.com>
Signed-off-by: Sam Davies <sam@avrofi.com>
@samsondav samsondav force-pushed the sam-avro/issue-5682-silent-renew branch from 6baff34 to a67932a Compare June 12, 2026 13:54
@samsondav samsondav marked this pull request as ready for review June 12, 2026 13:54
@samsondav samsondav force-pushed the sam-avro/issue-5682-silent-renew branch from ab838a3 to 75d1365 Compare June 12, 2026 14:09
Signed-off-by: Sam Davies <sam@avrofi.com>
@samsondav samsondav force-pushed the sam-avro/issue-5682-silent-renew branch from 75d1365 to e3bb6a6 Compare June 13, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Starting from 0.6.5 all UIs require re-login after access token expires

6 participants