Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FOLIO-4160: Enable mod-authtoken early (R1-2024) #2882

Open
wants to merge 2 commits into
base: R1-2024
Choose a base branch
from

Conversation

julianladisch
Copy link
Contributor

@julianladisch julianladisch commented Sep 10, 2024

https://folio-org.atlassian.net/browse/FOLIO-4160

Move mod-authtoken to the top 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

@julianladisch julianladisch changed the title Enable mod-authtoken early Enable mod-authtoken early (R1-2024) Sep 10, 2024
@DmytrMoroz DmytrMoroz force-pushed the R1-2024 branch 2 times, most recently from 85e6745 to 20028e9 Compare December 11, 2024 14:20
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
@julianladisch julianladisch force-pushed the enable-authtoken-early-R1-2024 branch from cc93b67 to 36d1f9b Compare January 9, 2025 09:54
@julianladisch julianladisch changed the title Enable mod-authtoken early (R1-2024) FOLIO-4160: Enable mod-authtoken early (R1-2024) Jan 9, 2025
@julianladisch julianladisch requested a review from a team January 9, 2025 10:13
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.

2 participants