From 467551b598e6878e0fe4052e900fd378a5170208 Mon Sep 17 00:00:00 2001 From: Julian Ladisch Date: Thu, 9 Jan 2025 11:08:25 +0100 Subject: [PATCH] FOLIO-4160: Enable mod-authtoken early (R2-2024-Edge) https://folio-org.atlassian.net/browse/FOLIO-4160 Move mod-authtoken to the top of install-extras.json so that it gets installed early. Then it is available when enabling a second module that requires a token to access a permission protected API of a third module. Modules using authtokens don't have the authtoken okapi interface in their requires section of in their module descriptor because they don't use the mod-authtoken HTTP API but the token feature of Okapi. Therefore we need to use the install order to ensure mod-authtoken availability. https://folio-project.slack.com/archives/CFQU1MF61/p1725977004958399?thread_ts=1725933118.184429&cid=CFQU1MF61 mod-authtoken requires mod-permissions and mod-users therefore we use this natural order: 1. mod-permissions 2. mod-users 3. mod-authtoken --- install-extras.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/install-extras.json b/install-extras.json index 8fdbfa802d..d429b10c68 100644 --- a/install-extras.json +++ b/install-extras.json @@ -3,6 +3,14 @@ "id": "mod-permissions-6.6.0", "action": "enable" }, + { + "id": "mod-users-19.4.0", + "action": "enable" + }, + { + "id": "mod-authtoken-2.16.1", + "action": "enable" + }, { "id": "edge-connexion-1.3.1", "action": "enable" @@ -75,10 +83,6 @@ "id": "mod-email-1.18.0", "action": "enable" }, - { - "id": "mod-users-19.4.0", - "action": "enable" - }, { "id": "mod-users-bl-7.9.3", "action": "enable" @@ -251,10 +255,6 @@ "id": "mod-quick-marc-6.0.0", "action": "enable" }, - { - "id": "mod-authtoken-2.16.1", - "action": "enable" - }, { "id": "mod-calendar-3.2.0", "action": "enable"