View | Details | Raw Unified | Return to bug 37711
Collapse All | Expand All

(-)a/api/v1/swagger/definitions/identity_provider_domain.yaml (-3 / +7 lines)
Lines 13-20 properties: Link Here
13
    type:
13
    type:
14
      - string
14
      - string
15
      - "null"
15
      - "null"
16
  auto_register:
16
  auto_register_opac:
17
    description: If patrons will be generated on login if required
17
    description: If patrons will be generated on login if required (OPAC)
18
    type: boolean
19
  auto_register_staff:
20
    description: If patrons will be generated on login if required (Staff interface)
18
    type: boolean
21
    type: boolean
19
  update_on_auth:
22
  update_on_auth:
20
    description: If patron data is updated on login
23
    description: If patron data is updated on login
Lines 39-45 additionalProperties: false Link Here
39
required:
42
required:
40
  - identity_provider_domain_id
43
  - identity_provider_domain_id
41
  - domain
44
  - domain
42
  - auto_register
45
  - auto_register_opac
46
  - auto_register_staff
43
  - update_on_auth
47
  - update_on_auth
44
  - default_library_id
48
  - default_library_id
45
  - default_category_id
49
  - default_category_id
(-)a/t/db_dependent/api/v1/idp.t (-5 / +8 lines)
Lines 106-112 my $oidc_without_email_provider_data = { Link Here
106
106
107
my $domain_not_matching = {
107
my $domain_not_matching = {
108
    domain              => 'gmail.com',
108
    domain              => 'gmail.com',
109
    auto_register       => 0,
109
    auto_register_opac  => 0,
110
    auto_register_staff => 0,
110
    update_on_auth      => 0,
111
    update_on_auth      => 0,
111
    default_library_id  => undef,
112
    default_library_id  => undef,
112
    default_category_id => undef,
113
    default_category_id => undef,
Lines 116-122 my $domain_not_matching = { Link Here
116
117
117
my $domain_no_register = {
118
my $domain_no_register = {
118
    domain              => 'some.library.com',
119
    domain              => 'some.library.com',
119
    auto_register       => 0,
120
    auto_register_opac  => 0,
121
    auto_register_staff => 0,
120
    update_on_auth      => 0,
122
    update_on_auth      => 0,
121
    default_library_id  => undef,
123
    default_library_id  => undef,
122
    default_category_id => undef,
124
    default_category_id => undef,
Lines 129-135 my $category = $builder->build_object( { class => 'Koha::Patron::Categories' } ) Link Here
129
131
130
my $domain_register = {
132
my $domain_register = {
131
    domain              => 'some.library.com',
133
    domain              => 'some.library.com',
132
    auto_register       => 1,
134
    auto_register_opac  => 1,
135
    auto_register_staff => 0,
133
    update_on_auth      => 0,
136
    update_on_auth      => 0,
134
    default_library_id  => $library->branchcode,
137
    default_library_id  => $library->branchcode,
135
    default_category_id => $category->categorycode,
138
    default_category_id => $category->categorycode,
Lines 139-145 my $domain_register = { Link Here
139
142
140
my $domain_register_update = {
143
my $domain_register_update = {
141
    domain              => 'some.library.com',
144
    domain              => 'some.library.com',
142
    auto_register       => 1,
145
    auto_register_opac  => 1,
146
    auto_register_staff => 0,
143
    update_on_auth      => 1,
147
    update_on_auth      => 1,
144
    default_library_id  => $library->branchcode,
148
    default_library_id  => $library->branchcode,
145
    default_category_id => $category->categorycode,
149
    default_category_id => $category->categorycode,
146
- 

Return to bug 37711