Ryo Ito > OIDC-Lite-0.06 > OIDC::Lite::Server::DataHandler

Download:
OIDC-Lite-0.06.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: OIDC-Lite-0.08

NAME ^

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

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.

SYNOPSIS ^

    package YourDataHandler;
    
    use strict;
    use warnings;

    use parent 'OIDC::Lite::Server::DataHandler';

    sub validate_scope {
        my ($self, $client_id, $scope) = @_;
        # your logic
        return 1;
    }

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_max_age( $aram )

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

validate_ui_locales_( $ui_locales )

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

validate_claims_locales_( $claims_locales )

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

validate_id_token_hint( $param )

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

validate_login_hint( $param )

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

validate_acr_values( $param )

Validation of acr_values 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.

validate_server_state($server_state, $client_id)

Return whether server_state is valid or not

require_server_state($scope)

Return whether scope requires server_state

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.

syntax highlighting: