Page Not Found
Sorry, this is the void.
:\Users\500000001\Documents>curl https://testchandan.com:5001/dev
Sorry, this is the void.
##
#!/usr/bin/env perl
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/../lib";
use webapp;
use Net::OAuth2::Client;
use Dancer2;
sub client {
Net::OAuth2::Client->new(
config->{'xxxxxxxxxxxxxxxxxxxxxx'},
config->{'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'},
authorize_url => 'https://dev.oktapreview.com/oauth2/v1/authorize',
access_token_url => 'https://dev.oktapreview.com/oauth2/v1/token',
response_type => 'code',
redirect_uri => uri_for ("https://testchandan.com:5001/"),
grant_type => 'authorization_code',
scope => 'openid',
state => '1234',
);
}
get 'https://testchandan.com:5001/42:site_id' => sub {
redirect client(params->{site_id})->authorize;
};
webapp->to_app;
####
package webapp;
use Dancer2;
use Op;
use Op1;
use URI;
our $VERSION = '0.1';
get '/' => sub {
#&client1;
template 'query2' => { 'title' => 'webapp' };
};
post '/'=> sub {
my $r2 = Op::result4({OKTAUsersList => param('OKTA-Users-List'),
Email => param('Email')});
template result2 => { title => 'webapp', result2 => $r2 }
};
true;