NAME

OIDC::Lite::Server::DataHandler - Base class that specifies interface for data handler for your service.

SYNOPSIS

DESCRIPTION

This specifies interface to handle data stored on your application. You have to inherit this, and implements subroutines according to the interface contract. This is proxy or adapter that connects OIDC::Lite library to your service.

METHODS

init

If your subclass need some initiation, implement in this method.

INTERFACES

request

Returns <Plack::Request> object.

validate_client_for_authorization( $client_id, $response_type )

Validation of client and allowed response_type. If it's OK, return 1. Return 0 if not.

validate_redirect_uri( $client_id, $redirect_uri )

Validation of redirect_uri param. If it's OK, return 1. Return 0 if not.

validate_scope( $client_id, $scope )

Validation of scope param. If it's OK, return 1. Return 0 if not.

validate_display( $display )

Validation of display param. If it's OK, return 1. Return 0 if not.

validate_prompt( $prompt )

Validation of prompt param. If it's OK, return 1. Return 0 if not.

validate_request( $param )

Validation of request param. If it's OK, return 1. Return 0 if not.

validate_request_uri( $param )

Validation of request_uri param. If it's OK, return 1. Return 0 if not.

get_user_id_for_authorization()

Return current user_id string.

create_id_token()

Return OIDC::Lite::Model::IDToken object.

create_or_update_auth_info(%args)

Return OIDC::Lite::Model::AuthInfo object.

client_associate($param, $access_token)

Return OIDC::Lite::Model::ClientInfo object.

client_update($param, $access_token)

Return OIDC::Lite::Model::ClientInfo object.

rotate_secret($access_token)

Return OIDC::Lite::Model::ClientInfo object.

AUTHOR

Ryo Ito, <ritou.06@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2012 by Ryo Ito

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.