Skip to content

Commit

Permalink
FOLIO-4160: Enable mod-authtoken early (R1-2024)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
julianladisch committed Jan 9, 2025
1 parent a244d3f commit 36d1f9b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions install-extras.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"id": "mod-permissions-6.5.0",
"action": "enable"
},
{
"id": "mod-users-19.3.2",
"action": "enable"
},
{
"id": "mod-authtoken-2.15.2",
"action": "enable"
},
{
"id": "edge-connexion-1.3.1",
"action": "enable"
Expand Down Expand Up @@ -71,10 +79,6 @@
"id": "mod-email-1.17.0",
"action": "enable"
},
{
"id": "mod-users-19.3.2",
"action": "enable"
},
{
"id": "mod-users-bl-7.7.5",
"action": "enable"
Expand Down Expand Up @@ -247,10 +251,6 @@
"id": "mod-quick-marc-5.1.1",
"action": "enable"
},
{
"id": "mod-authtoken-2.15.2",
"action": "enable"
},
{
"id": "mod-calendar-3.1.0",
"action": "enable"
Expand Down

0 comments on commit 36d1f9b

Please sign in to comment.