Bug 31378: Add Koha::Auth::Provider::Domain(s) class(es)

Signed-off-by: Lukasz Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomas Cohen Arazi 2022-08-24 11:58:44 -03:00
parent c0316b48c0
commit 855ad02bf8
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 93 additions and 0 deletions

View File

@ -0,0 +1,40 @@
package Koha::Auth::Provider::Domain;
# Copyright Theke Solutions 2022
#
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# Koha is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.
use Modern::Perl;
use base qw(Koha::Object);
=head1 NAME
Koha::Auth::Provider::Domain - Koha Auth Provider Domain Object class
=head1 API
=head2 Internal methods
=head3 _type
=cut
sub _type {
return 'AuthProviderDomain';
}
1;

View File

@ -0,0 +1,53 @@
package Koha::Auth::Provider::Domains;
# Copyright Theke Solutions 2022
#
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# Koha is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.
use Modern::Perl;
use Koha::Database;
use Koha::Auth::Provider::Domain;
use base qw(Koha::Objects);
=head1 NAME
Koha::Auth::Providers - Koha Auth Provider Object class
=head1 API
=head2 Internal methods
=cut
=head3 _type
=cut
sub _type {
return 'AuthProviderDomain';
}
=head3 object_class
=cut
sub object_class {
return 'Koha::Auth::Provider::Domain';
}
1;