From e6d988f7e8ebbdd32d31d373f74b17caa2996597 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 "Testing SSO" from the Koha Wiki 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 4bd7be8c12..d35dc73828 100644 --- a/Koha/REST/V1.pm +++ b/Koha/REST/V1.pm @@ -161,7 +161,7 @@ sub startup { $self->plugin('Koha::REST::Plugin::Exceptions'); $self->plugin('Koha::REST::Plugin::Responses'); $self->plugin('Koha::REST::Plugin::Auth::IdP'); - $self->plugin( 'Mojolicious::Plugin::OAuth2' => $oauth_configuration ); + $self->plugin( 'OAuth2' => $oauth_configuration ); } 1; -- 2.39.5