2021-06-18 01:03:51 +00:00
= Upgrading {project_name} adapters
2017-09-01 03:25:47 +00:00
[[_upgrade_adapters]]
It is important that you upgrade {project_name} server first, and then upgrade the adapters. Earlier versions of the
adapter might work with later versions of {project_name} server, but earlier versions of {project_name} server might not
work with later versions of the adapter.
2018-01-22 09:57:03 +00:00
[[_compatibility_with_older_adapters]]
== Compatibility with older adapters
As mentioned above, we try to support newer release versions of {project_name} server working with older release versions of the adapters.
However, in some cases we need to include fixes on the {project_name} server side which may break compatibility with older versions
of the adapters. For example, when we implement new aspects of the OpenID Connect specification, which older client adapter versions
were not aware of.
In those cases, we added Compatibility modes. For OpenId Connect clients, there is a section named `OpenID Connect Compatibility Modes`
in the {project_name} admin console, on the page with client details. Here, you can disable some new aspects of the {project_name} server
to preserve compatibility with older client adapters. More details are available in the tool tips of individual switches.
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
2018-01-25 12:45:57 +00:00
ifeval::[{project_product}==true]
2021-06-18 01:03:51 +00:00
.Procedure
If you originally installed the adapter using a downloaded archive, to upgrade the {appserver_name} adapter, perform the following procedure.
2018-01-25 12:45:57 +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}`.
2018-01-25 12:45:57 +00:00
2021-06-18 01:03:51 +00:00
.Procedure
2018-01-25 12:55:41 +00:00
If you originally installed the adapter using RPM, to upgrade the adapter, complete the following steps, which are different depending on whether you are performing a minor or a micro upgrade:
2018-01-25 12:45:57 +00:00
2018-01-25 13:01:12 +00:00
. For minor upgrades, use Yum to uninstall any adapters you currently have installed and then use Yum to install the new version of the adapters.
. For micro upgrades, use Yum to upgrade the adapter. This is the only step for micro upgrades.
2021-06-18 01:03:51 +00:00
+
2018-01-25 12:45:57 +00:00
[source,bash,options="nowrap"]
----
yum update
----
endif::[]
ifeval::[{project_community}==true]
2021-06-18 01:03:51 +00:00
.Procedure
2017-09-01 03:25:47 +00:00
To upgrade the {appserver_name} adapter, complete the following steps:
. 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
2018-01-25 12:45:57 +00:00
endif::[]
2017-09-01 03:25:47 +00:00
[[_upgrade_js_adapter]]
2021-06-18 01:03:51 +00:00
== Upgrading the JavaScript adapter
To upgrade a JavaScript 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.
. Overwrite the keycloak.js file in your application with the keycloak.js file from the downloaded archive.
[[_upgrade_nodejs_adapter]]
2021-06-18 01:03:51 +00:00
== Upgrading the Node.js adapter
2017-09-01 03:25:47 +00:00
2021-06-18 01:03:51 +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.
. Remove the existing Node.js adapter directory
. Unzip the updated file into its place
. Change the dependency for keycloak-connect in the package.json of your application