2 package Koha::Schema::Result::AuthProvider;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::AuthProvider
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<auth_providers>
22 __PACKAGE__->table("auth_providers");
26 =head2 auth_provider_id
32 unique key, used to identify the provider
48 Description for the provider
53 extra: {list => ["OAuth","OIDC","LDAP","CAS"]}
56 Protocol provider speaks
64 Configuration of the provider in JSON format
72 Configuration to map provider data to Koha user
77 extra: {list => ["email","userid","cardnumber"]}
80 The patron attribute to be used as matchpoint
92 __PACKAGE__->add_columns(
94 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
96 { data_type => "varchar", is_nullable => 0, size => 20 },
98 { data_type => "varchar", is_nullable => 0, size => 255 },
102 extra => { list => ["OAuth", "OIDC", "LDAP", "CAS"] },
106 { data_type => "longtext", default_value => "'{}'", is_nullable => 0 },
108 { data_type => "longtext", default_value => "'{}'", is_nullable => 0 },
112 extra => { list => ["email", "userid", "cardnumber"] },
116 { data_type => "varchar", is_nullable => 1, size => 255 },
123 =item * L</auth_provider_id>
129 __PACKAGE__->set_primary_key("auth_provider_id");
131 =head1 UNIQUE CONSTRAINTS
143 __PACKAGE__->add_unique_constraint("code", ["code"]);
147 =head2 auth_provider_domains
151 Related object: L<Koha::Schema::Result::AuthProviderDomain>
155 __PACKAGE__->has_many(
156 "auth_provider_domains",
157 "Koha::Schema::Result::AuthProviderDomain",
158 { "foreign.auth_provider_id" => "self.auth_provider_id" },
159 { cascade_copy => 0, cascade_delete => 0 },
163 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-30 19:43:00
164 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZqUo3by0ZXca5RI3QFNypw
171 Related object: L<Koha::Schema::Result::AuthProviderDomain>
175 __PACKAGE__->has_many(
177 "Koha::Schema::Result::AuthProviderDomain",
178 { "foreign.auth_provider_id" => "self.auth_provider_id" },
179 { cascade_copy => 0, cascade_delete => 0 },
182 sub koha_object_class {
183 'Koha::Auth::Provider';
185 sub koha_objects_class {
186 'Koha::Auth::Providers';