Bug 33768 - We need tests for the OAuth2/OIDC client
Summary: We need tests for the OAuth2/OIDC client
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Authentication (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-18 14:30 UTC by Tomás Cohen Arazi (tcohen)
Modified: 2023-10-10 16:34 UTC (History)
6 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi (tcohen) 2023-05-18 14:30:20 UTC

    
Comment 1 Tomás Cohen Arazi (tcohen) 2023-05-18 14:32:52 UTC
When the feature was developed, we didn't find a way to make tests for it. All testing was done against live servers (that's why the `--sso` switch was added to `ktd`.

There's a Mock targert server in the Mojolicious::Plugin::OAuth2 library we could try, or maybe it would require ad-hoc mocking.

Not sure, ideas/patches welcome.