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> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
This commit is contained in:
parent
d66935302f
commit
aa03a9301c
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue