From daa78e6860301912d4f33f1fad31537129f9c66a Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 19 Feb 2025 05:58:12 +0000 Subject: [PATCH] Bug 39160: Use optimal Mojolicious plugin name This change uses "OAuth2" instead of "Mojolicious::Plugin::OAuth2" when setting the plugin, so that Mojolicious can find the plugin faster. Test plan: 0. Apply the patch 1. koha-plack --restart kohadev 2. Run through OpenID Connect setup from "Testing SSO" on Koha Wiki https://wiki.koha-community.org/wiki/Testing_SSO 3. Confirm that you can log into Koha using the Keycloak OIDC --- Koha/REST/V1.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/REST/V1.pm b/Koha/REST/V1.pm index 158ffbf1225..44656e7fe9b 100644 --- a/Koha/REST/V1.pm +++ b/Koha/REST/V1.pm @@ -175,7 +175,7 @@ sub startup { $self->plugin('Koha::REST::Plugin::Responses'); $self->plugin('Koha::REST::Plugin::Auth::IdP'); $self->plugin('Koha::REST::Plugin::Auth::PublicRoutes'); - $self->plugin( 'Mojolicious::Plugin::OAuth2' => $oauth_configuration ); + $self->plugin( 'OAuth2' => $oauth_configuration ); } 1; -- 2.39.5