NAME

Net::OATH::Server::Lite::DataHandler - Base class that specifies interface for data handler for your server.

DESCRIPTION

This connects Net::OATH::Server::Lite library to your service. This specifies an interface to handle data stored in your application. You must inherit this and implement the subroutines according to the interface contract.

SYNOPSIS

    package YourDataHandler;
    use strict;
    use warnings;

    use parent 'Net::OATH::Server::Lite::DataHandler';

METHODS

init

This method can be implemented to initialize your subclass.

INTERFACES

request

Returns <Plack::Request> object.

create_id

Returns identifier of new user object.

create_secret

Returns raw secret of new user object.

insert_user( $user )

Inserts new user object to your datastore and returnes result as a boolean.

select_user( $id )

Return user object which is found by $id.

update_user( $user )

Updates user object on your datastore and returnes result as a boolean.

delete_user( $id )

Deletes user object which is found by $id on your datastore and returnes result as a boolean.