Bug 33768

Summary: We need tests for the OAuth2/OIDC client
Product: Koha Reporter: Tomás Cohen Arazi (tcohen) <tomascohen>
Component: AuthenticationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: dcook, dpavlin, jonathan.druart, kyle, martin.renvoize, tomascohen
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33675
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33782
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

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.