<<

NAME

Koha::REST::Plugin::Auth::IdP

API

Helper methods

register

Missing POD for register.

auth.register

    my $patron = $c->auth->register(
        {
            data      => $patron_data,
            domain    => $domain,
            interface => $interface
        }
    );

This helper creates a new Koha::Patron using the (already) mapped data provided in the data attribute.

A check is done on the passed interface and domain to validate the provider is configured to allow auto registration.

Valid values for interface are opac and staff. An exception will be thrown if other values or none are passed.

auth.session

    my ( $status, $cookie, $session_id ) = $c->auth->session( $patron );

Generates a new session.

<<