Skip to content

Make Keycloak.updateToken minValidity parameter optional - #23050

Merged
jonkoops merged 1 commit into
keycloak:mainfrom
ddubrava:patch-1
Sep 14, 2023
Merged

Make Keycloak.updateToken minValidity parameter optional#23050
jonkoops merged 1 commit into
keycloak:mainfrom
ddubrava:patch-1

Conversation

@ddubrava

@ddubrava ddubrava commented Sep 7, 2023

Copy link
Copy Markdown
Contributor

In the JavaScript adapter documentation it's said that minValidity in updateToken is optional, while it's not.

Screenshot 2023-09-07 at 12 10 39

Closes #23149

@ddubrava
ddubrava requested a review from a team as a code owner September 7, 2023 10:17

@jonkoops jonkoops 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.

The value is actually optional, the type definition is wrong and should be corrected instead.

@jonkoops

Copy link
Copy Markdown
Contributor

@ddubrava could you also log an issue for this? It will make it easier for us to backport this change to a patch release.

@ddubrava

ddubrava commented Sep 11, 2023

Copy link
Copy Markdown
Contributor Author

sure!

#23149

@jonkoops

Copy link
Copy Markdown
Contributor

Thanks for that. Do you intend to update this PR to change this, or do you prefer to open up a new one?

@ddubrava

Copy link
Copy Markdown
Contributor Author

Thanks for that. Do you intend to update this PR to change this, or do you prefer to open up a new one?

I'll fix it in this one

@ddubrava
ddubrava requested a review from a team as a code owner September 12, 2023 17:45
@ghost ghost added the team/ui label Sep 12, 2023
@ddubrava ddubrava changed the title Remove statement that minValidity is optional in isTokenExpired Make Keycloak.updateToken minValidity parameter optional Sep 12, 2023
@ddubrava

Copy link
Copy Markdown
Contributor Author

The param description is copied from this method

Screenshot 2023-09-12 at 19 48 00

@jonkoops
jonkoops enabled auto-merge (squash) September 14, 2023 09:33
@jonkoops

Copy link
Copy Markdown
Contributor

I've set the PR to merge automatically once CI passes, thanks for your contribution @ddubrava!

@cypress

cypress Bot commented Sep 14, 2023

Copy link
Copy Markdown

1 flaky test on run #8947 ↗︎

0 527 48 0 Flakiness 1

Details:

Merge 5bbd9e0 into dc9970f...
Project: Keycloak Admin UI Commit: 066d537951 ℹ️
Status: Passed Duration: 13:38 💡
Started: Sep 14, 2023 9:59 AM Ended: Sep 14, 2023 10:13 AM
Flakiness  cypress/e2e/realm_settings_general_tab_test.spec.ts • 1 flaky test • chrome

View Output Video

Test Artifacts
Realm settings general tab tests > Test all general tab switches Test Replay Output Screenshots

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@jonkoops
jonkoops merged commit 911ff1a into keycloak:main Sep 14, 2023
@ddubrava
ddubrava deleted the patch-1 branch September 14, 2023 13:44
paulbares added a commit to paulbares/keycloak that referenced this pull request Sep 15, 2023
* master: (7978 commits)
  CLI args not recognized when running Quarkus dev mode (keycloak#23254)
  Bump github/codeql-action from 2.21.5 to 2.21.6
  Race condition inside Keycloak build chain execution (keycloak#23260)
  doc(js-providers): Add OIDC object mapper documentation
  Fix NPE by calling delegate in DeploymentDelegate.getAdapterConfig()
  Add new version of Welcome theme based on PatternFly 5 (keycloak#23008)
  Toggle visibility of password input fields in login-ftl-based pages
  i18n: Add Thai language (keycloak#23165)
  Registration page not showing username when edit username is not enabled
  Bump @4tw/cypress-drag-drop from 2.2.4 to 2.2.5 in /js (keycloak#23237)
  Make `minValidity` parameter in `updateToken()` optional (keycloak#23050)
  Bump cypress from 13.1.0 to 13.2.0 in /js (keycloak#23186)
  Add 22.0.3 to release notes (keycloak#23238)
  Removed namespaces from messages (keycloak#23205)
  Send Client ID in token request with JWT Authentication
  Bump @types/tar-fs from 2.0.1 to 2.0.2 in /js (keycloak#23189)
  Bump uuid from 9.0.0 to 9.0.1 in /js (keycloak#23190)
  Bump wireit from 0.13.0 to 0.14.0 in /js (keycloak#23191)
  Bump @playwright/test from 1.37.1 to 1.38.0 in /js (keycloak#23223)
  Bump @testing-library/cypress from 9.0.0 to 10.0.1 in /js (keycloak#23224)
  ...
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.

type definitions of updateToken minValidity are wrong, argument should be optional

2 participants