Bugzilla – Attachment 178304 Details for
Bug 39160
Mojolicious::Plugin::OAuth2 is loaded suboptimally
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39160: Use optimal Mojolicious plugin name
Bug-39160-Use-optimal-Mojolicious-plugin-name.patch (text/plain), 1.05 KB, created by
David Cook
on 2025-02-19 06:00:01 UTC
(
hide
)
Description:
Bug 39160: Use optimal Mojolicious plugin name
Filename:
MIME Type:
Creator:
David Cook
Created:
2025-02-19 06:00:01 UTC
Size:
1.05 KB
patch
obsolete
>From e6d988f7e8ebbdd32d31d373f74b17caa2996597 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39160
: 178304