Bugzilla – Attachment 192582 Details for
Bug 40736
OAuth/OIDC authentication logs error message when CGISESSID is missing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40736: Add test
Bug-40736-Add-test.patch (text/plain), 1.35 KB, created by
David Cook
on 2026-02-06 06:16:22 UTC
(
hide
)
Description:
Bug 40736: Add test
Filename:
MIME Type:
Creator:
David Cook
Created:
2026-02-06 06:16:22 UTC
Size:
1.35 KB
patch
obsolete
>From 42a87ce919466c0696dd0cf791abb42cbe23662e Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >Date: Mon, 29 Sep 2025 14:20:31 +0300 >Subject: [PATCH] Bug 40736: Add test > >To test: >1. prove t/db_dependent/api/v1/idp.t > >Signed-off-by: David Cook <dcook@prosentient.com.au> >--- > t/db_dependent/api/v1/idp.t | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/idp.t b/t/db_dependent/api/v1/idp.t >index d4565f4eab1..9fd115b8ca7 100755 >--- a/t/db_dependent/api/v1/idp.t >+++ b/t/db_dependent/api/v1/idp.t >@@ -286,7 +286,7 @@ subtest 'domain endpoint tests' => sub { > }; > > subtest 'oauth login tests' => sub { >- plan tests => 4; >+ plan tests => 6; > > $schema->storage->txn_begin; > >@@ -321,6 +321,15 @@ subtest 'oauth login tests' => sub { > $t = Test::Mojo->new('Koha::REST::V1'); > > $t->get_ok("/api/v1/public/oauth/login/oauth_test/opac")->status_is(302); >+ >+ $tx = $t->ua->build_tx( GET => "/api/v1/public/oauth/login/oauth_test/opac" ); >+ $tx->req->cookies( { name => 'NOTCGISESSID', value => $session_id } ); >+ $tx->req->env( { REMOTE_ADDR => $remote_address } ); >+ $t->request_ok($tx)->header_like( >+ Location => qr/\?auth_error=No%20user%20session%20found/, >+ "Redirect to error when no CGISESSID provided" >+ ); >+ > $schema->storage->txn_rollback; > }; > >-- >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 40736
:
186651
|
186950
|
187031
|
187032
|
187033
|
192580
|
192581
| 192582