Bugzilla – Attachment 187070 Details for
Bug 37711
IdP auto-register should work on the staff interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37711: API changes
Bug-37711-API-changes.patch (text/plain), 3.13 KB, created by
David Cook
on 2025-09-30 01:30:04 UTC
(
hide
)
Description:
Bug 37711: API changes
Filename:
MIME Type:
Creator:
David Cook
Created:
2025-09-30 01:30:04 UTC
Size:
3.13 KB
patch
obsolete
>From bff9039e0ac78bc064d1caccae72c3f491e2c76d Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 22 Aug 2024 15:26:13 -0300 >Subject: [PATCH] Bug 37711: API changes > >This patch makes the API representation of the identity providers >domains match the new metadata. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: David Cook <dcook@prosentient.com.au> >--- > .../definitions/identity_provider_domain.yaml | 10 +++++++--- > t/db_dependent/api/v1/idp.t | 12 ++++++++---- > 2 files changed, 15 insertions(+), 7 deletions(-) > >diff --git a/api/v1/swagger/definitions/identity_provider_domain.yaml b/api/v1/swagger/definitions/identity_provider_domain.yaml >index a912e735d0..b18b1a6f6d 100644 >--- a/api/v1/swagger/definitions/identity_provider_domain.yaml >+++ b/api/v1/swagger/definitions/identity_provider_domain.yaml >@@ -13,8 +13,11 @@ properties: > type: > - string > - "null" >- auto_register: >- description: If patrons will be generated on login if required >+ auto_register_opac: >+ description: If patrons will be generated on login if required (OPAC) >+ type: boolean >+ auto_register_staff: >+ description: If patrons will be generated on login if required (Staff interface) > type: boolean > update_on_auth: > description: If patron data is updated on login >@@ -39,7 +42,8 @@ additionalProperties: false > required: > - identity_provider_domain_id > - domain >- - auto_register >+ - auto_register_opac >+ - auto_register_staff > - update_on_auth > - default_library_id > - default_category_id >diff --git a/t/db_dependent/api/v1/idp.t b/t/db_dependent/api/v1/idp.t >index 51e12776e6..86987ec273 100755 >--- a/t/db_dependent/api/v1/idp.t >+++ b/t/db_dependent/api/v1/idp.t >@@ -107,7 +107,8 @@ my $oidc_without_email_provider_data = { > > my $domain_not_matching = { > domain => 'gmail.com', >- auto_register => 0, >+ auto_register_opac => 0, >+ auto_register_staff => 0, > update_on_auth => 0, > default_library_id => undef, > default_category_id => undef, >@@ -117,7 +118,8 @@ my $domain_not_matching = { > > my $domain_no_register = { > domain => 'some.library.com', >- auto_register => 0, >+ auto_register_opac => 0, >+ auto_register_staff => 0, > update_on_auth => 0, > default_library_id => undef, > default_category_id => undef, >@@ -130,7 +132,8 @@ my $category = $builder->build_object( { class => 'Koha::Patron::Categories' } ) > > my $domain_register = { > domain => 'some.library.com', >- auto_register => 1, >+ auto_register_opac => 1, >+ auto_register_staff => 0, > update_on_auth => 0, > default_library_id => $library->branchcode, > default_category_id => $category->categorycode, >@@ -140,7 +143,8 @@ my $domain_register = { > > my $domain_register_update = { > domain => 'some.library.com', >- auto_register => 1, >+ auto_register_opac => 1, >+ auto_register_staff => 0, > update_on_auth => 1, > default_library_id => $library->branchcode, > default_category_id => $category->categorycode, >-- >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 37711
:
170643
|
170644
|
170645
|
170646
|
170647
|
174090
|
174091
|
174092
|
174093
|
174094
|
185244
|
185245
|
185246
|
185247
|
185248
|
186978
|
186979
|
186980
|
186981
|
186982
|
187000
|
187001
|
187034
|
187037
|
187038
|
187039
|
187040
|
187041
|
187042
|
187043
|
187068
|
187069
| 187070 |
187071
|
187072