OIDC::Lite::Server::DataHandler - Base class that specifies interface for data handler for your service.
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.
package YourDataHandler; use strict; use warnings; use parent 'OIDC::Lite::Server::DataHandler'; sub validate_scope { my ($self, $client_id, $scope) = @_; # your logic return 1; }
If your subclass need some initiation, implement in this method.
Returns <Plack::Request> object.
Validation of client and allowed response_type. If it's OK, return 1. Return 0 if not.
Validation of redirect_uri param. If it's OK, return 1. Return 0 if not.
Validation of scope param. If it's OK, return 1. Return 0 if not.
Validation of display param. If it's OK, return 1. Return 0 if not.
Validation of prompt param. If it's OK, return 1. Return 0 if not.
Validation of max_age param. If it's OK, return 1. Return 0 if not.
Validation of ui_locales param. If it's OK, return 1. Return 0 if not.
Validation of claims_locales param. If it's OK, return 1. Return 0 if not.
Validation of id_token_hint param. If it's OK, return 1. Return 0 if not.
Validation of login_hint param. If it's OK, return 1. Return 0 if not.
Validation of acr_values param. If it's OK, return 1. Return 0 if not.
Validation of request param. If it's OK, return 1. Return 0 if not.
Validation of request_uri param. If it's OK, return 1. Return 0 if not.
Return current user_id string.
Return OIDC::Lite::Model::IDToken object.
Return OIDC::Lite::Model::AuthInfo object.
Return whether server_state is valid or not
Return whether scope requires server_state
Ryo Ito, <ritou.06@gmail.com>
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.
To install OIDC::Lite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OIDC::Lite
CPAN shell
perl -MCPAN -e shell install OIDC::Lite
For more information on module installation, please visit the detailed CPAN module installation guide.