2 package Koha::Schema::Result::IdentityProvider;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::IdentityProvider
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<identity_providers>
22 __PACKAGE__->table("identity_providers");
26 =head2 identity_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
63 Configuration of the provider in JSON format
70 Configuration to map provider data to Koha user
75 extra: {list => ["email","userid","cardnumber"]}
78 The patron attribute to be used as matchpoint
90 __PACKAGE__->add_columns(
91 "identity_provider_id",
92 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
94 { data_type => "varchar", is_nullable => 0, size => 20 },
96 { data_type => "varchar", is_nullable => 0, size => 255 },
100 extra => { list => ["OAuth", "OIDC", "LDAP", "CAS"] },
104 { data_type => "longtext", is_nullable => 0 },
106 { data_type => "longtext", is_nullable => 0 },
110 extra => { list => ["email", "userid", "cardnumber"] },
114 { data_type => "varchar", is_nullable => 1, size => 255 },
121 =item * L</identity_provider_id>
127 __PACKAGE__->set_primary_key("identity_provider_id");
129 =head1 UNIQUE CONSTRAINTS
141 __PACKAGE__->add_unique_constraint("code", ["code"]);
145 =head2 identity_provider_domains
149 Related object: L<Koha::Schema::Result::IdentityProviderDomain>
153 __PACKAGE__->has_many(
154 "identity_provider_domains",
155 "Koha::Schema::Result::IdentityProviderDomain",
156 { "foreign.identity_provider_id" => "self.identity_provider_id" },
157 { cascade_copy => 0, cascade_delete => 0 },
161 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-10 13:01:32
162 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xSD/bRC3hJCF+nP/EYwn3Q
164 __PACKAGE__->has_many(
166 "Koha::Schema::Result::IdentityProviderDomain",
167 { "foreign.identity_provider_id" => "self.identity_provider_id" },
168 { cascade_copy => 0, cascade_delete => 0 },
171 sub koha_object_class {
172 'Koha::Auth::Identity::Provider';
174 sub koha_objects_class {
175 'Koha::Auth::Identity::Providers';