2021-06-18 01:03:51 +00:00
= Upgrading {project_name} adapters
2017-09-01 03:25:47 +00:00
[[_upgrade_adapters]]
2024-03-11 15:22:46 +00:00
After you upgrade the {project_name} server, you can upgrade the adapters. Earlier versions of the
adapter might work with later versions of the {project_name} server, but earlier versions of the {project_name} server might not
2017-09-01 03:25:47 +00:00
work with later versions of the adapter.
2018-01-22 09:57:03 +00:00
[[_compatibility_with_older_adapters]]
== Compatibility with older adapters
2024-03-11 15:22:46 +00:00
Newer versions of the {project_name} server potentially work with older versions of the adapters.
However, some fixes of the {project_name} server may break compatibility with older versions
of the adapters. For example, a new implementation of the OpenID Connect specification may not match older client adapter versions.
2018-01-22 09:57:03 +00:00
2024-03-11 15:22:46 +00:00
For this situation, you can use Compatibility modes. For OpenID Connect clients, the Admin Console includes *OpenID Connect Compatibility Modes* on the page with client details. With this option, you can disable some new aspects of the {project_name} server
to preserve compatibility with older client adapters. For more details, see the tool tips of individual switches.
2018-01-22 09:57:03 +00:00
2017-09-01 03:25:47 +00:00
[[_upgrade_eap_adapter]]
2021-06-18 01:03:51 +00:00
== Upgrading the EAP adapter
2017-09-01 03:25:47 +00:00
To upgrade the {appserver_name} adapter, complete the following steps:
2024-03-11 15:22:46 +00:00
.Procedure
2017-09-01 03:25:47 +00:00
. Download the new adapter archive.
. Remove the previous adapter modules by deleting the `{appserver_dirref}/modules/system/add-ons/keycloak/` directory.
2021-06-18 01:03:51 +00:00
. Unzip the downloaded archive into `{appserver_dirref}`.
2017-09-01 03:25:47 +00:00
[[_upgrade_js_adapter]]
2021-06-18 01:03:51 +00:00
== Upgrading the JavaScript adapter
2024-09-11 15:46:04 +00:00
To upgrade a JavaScript adapter, install the latest version https://www.npmjs.com/package/keycloak-js[from NPM].
2017-09-01 03:25:47 +00:00
2021-06-18 01:03:51 +00:00
.Procedure
2024-09-11 15:46:04 +00:00
. `npm install keycloak-js@latest`
2017-09-01 03:25:47 +00:00
[[_upgrade_nodejs_adapter]]
2024-03-11 15:22:46 +00:00
== Upgrading the `Node.js` adapter
2017-09-01 03:25:47 +00:00
2024-03-11 15:22:46 +00:00
To upgrade a `Node.js` adapter that has been copied to your web application, perform the following procedure.
2017-09-01 03:25:47 +00:00
2021-06-18 01:03:51 +00:00
.Procedure
2017-09-01 03:25:47 +00:00
. Download the new adapter archive.
2024-03-11 15:22:46 +00:00
. Remove the existing `Node.js` adapter directory
2017-09-01 03:25:47 +00:00
. Unzip the updated file into its place
2024-03-11 15:22:46 +00:00
. Change the dependency for keycloak-connect in the `package.json` of your application