eature qw(:5.10);
use Data::Util qw(:check);
use Moo;
use Plack::Request;
use Plack::Session;
use JSON;
our $VERSION = "0.0137";
with "Plack::Auth::SSO";
#cf. https://github.com/toyokazu/omniauth-s
/;
$env->{"HTTP_${key}"};
}
sub to_app {
my $self = $_[0];
sub {
state $json = JSON->new()->utf8(1);
my $env = $_[0];
my $request = Plack::Request->new($env);
response => {
content => $json->encode($content),
content_type => "application/json"
}
}
);
$self->
(:check);
use JSON;
use Moo;
use Clone qw();
our $VERSION = "0.0137";
with "Plack::Auth::SSO::ResponseParser";
has json => (
is => "ro",
lazy => 1,
builder => "_build_json",
init_ar
g => undef
);
sub _build_json {
JSON->new();
}
sub dig {
my( $hash, @keys ) = @_;
while( my $key = shift(@keys) ){
return unless exists $hash->{$key};
return $hash->{$k
{
$obj = $self->json()->decode( $obj );
}
else {
$obj = Clone::clone( $obj );
}
if ( is_string( $obj2 ) ) {
$obj2 = $self->json()->decode( $obj2 );
use Moo;
use Plack::Request;
use Plack::Session;
use URI;
use LWP::UserAgent;
use WWW::ORCID;
use JSON;
use Plack::Auth::SSO::ResponseParser::ORCID;
our $VERSION = "0.0137";
with "Plack::Auth::SSO";
ponseParser::ORCID->new();
},
init_arg => undef
);
has json => (
is => "ro",
lazy => 1,
default => sub {
JSON->new->utf8(1);
},
init_arg => undef
);
sub _build_orc
pp {
my $self = $_[0];
sub {
state $orcid = $self->orcid;
state $json = $self->json;
state $response_parser = $self->response_parser;
my $env = $_[0];