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

(-)a/Koha/Schema/Result/ShibbolethConfig.pm (+109 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::ShibbolethConfig;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::ShibbolethConfig
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<shibboleth_config>
19
20
=cut
21
22
__PACKAGE__->table("shibboleth_config");
23
24
=head1 ACCESSORS
25
26
=head2 shibboleth_config_id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
primary key
33
34
=head2 force_opac_sso
35
36
  data_type: 'tinyint'
37
  default_value: 0
38
  is_nullable: 0
39
40
Force Shibboleth SSO for OPAC
41
42
=head2 force_staff_sso
43
44
  data_type: 'tinyint'
45
  default_value: 0
46
  is_nullable: 0
47
48
Force Shibboleth SSO for staff interface
49
50
=head2 autocreate
51
52
  data_type: 'tinyint'
53
  default_value: 0
54
  is_nullable: 0
55
56
Automatically create new patrons
57
58
=head2 sync
59
60
  data_type: 'tinyint'
61
  default_value: 0
62
  is_nullable: 0
63
64
Sync patron attributes on login
65
66
=head2 welcome
67
68
  data_type: 'tinyint'
69
  default_value: 0
70
  is_nullable: 0
71
72
Send welcome email to new patrons
73
74
=cut
75
76
__PACKAGE__->add_columns(
77
  "shibboleth_config_id",
78
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
79
  "force_opac_sso",
80
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
81
  "force_staff_sso",
82
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
83
  "autocreate",
84
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
85
  "sync",
86
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
87
  "welcome",
88
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
89
);
90
91
=head1 PRIMARY KEY
92
93
=over 4
94
95
=item * L</shibboleth_config_id>
96
97
=back
98
99
=cut
100
101
__PACKAGE__->set_primary_key("shibboleth_config_id");
102
103
104
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-31 15:43:50
105
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AIDq10SUxo8NgJsBj8oldg
106
107
108
# You can replace this text with custom code or comments, and it will be preserved on regeneration
109
1;
(-)a/Koha/Schema/Result/ShibbolethFieldMapping.pm (-1 / +113 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::ShibbolethFieldMapping;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::ShibbolethFieldMapping
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<shibboleth_field_mappings>
19
20
=cut
21
22
__PACKAGE__->table("shibboleth_field_mappings");
23
24
=head1 ACCESSORS
25
26
=head2 mapping_id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
primary key
33
34
=head2 idp_field
35
36
  data_type: 'varchar'
37
  is_nullable: 1
38
  size: 255
39
40
Field name from the identity provider
41
42
=head2 koha_field
43
44
  data_type: 'varchar'
45
  is_nullable: 0
46
  size: 255
47
48
Corresponding field in Koha borrowers table
49
50
=head2 is_matchpoint
51
52
  data_type: 'tinyint'
53
  default_value: 0
54
  is_nullable: 0
55
56
If this field is used to match existing users
57
58
=head2 default_content
59
60
  data_type: 'varchar'
61
  is_nullable: 1
62
  size: 255
63
64
Default content for this field if not provided by the IdP
65
66
=cut
67
68
__PACKAGE__->add_columns(
69
  "mapping_id",
70
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
71
  "idp_field",
72
  { data_type => "varchar", is_nullable => 1, size => 255 },
73
  "koha_field",
74
  { data_type => "varchar", is_nullable => 0, size => 255 },
75
  "is_matchpoint",
76
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
77
  "default_content",
78
  { data_type => "varchar", is_nullable => 1, size => 255 },
79
);
80
81
=head1 PRIMARY KEY
82
83
=over 4
84
85
=item * L</mapping_id>
86
87
=back
88
89
=cut
90
91
__PACKAGE__->set_primary_key("mapping_id");
92
93
=head1 UNIQUE CONSTRAINTS
94
95
=head2 C<koha_field_idx>
96
97
=over 4
98
99
=item * L</koha_field>
100
101
=back
102
103
=cut
104
105
__PACKAGE__->add_unique_constraint("koha_field_idx", ["koha_field"]);
106
107
108
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-31 15:43:50
109
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jMBj5Kjjkh1fX74py69SXQ
110
111
112
# You can replace this text with custom code or comments, and it will be preserved on regeneration
113
1;

Return to bug 39224