Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^7: Need to resolve the API call query

by chandantul (Scribe)
on Jun 16, 2021 at 22:35 UTC ( [id://11133936]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Need to resolve the API call query
in thread Need to resolve the API call query

Hi, I have switched to Dancer2::Plugin::Auth::OAuth and would like to use the same for authorization. Could you please confirm the if this would be the app.psgi but its not loading with below configuration. Do i need to add below configuration inside plack builder. This supposed to work without Plack builder. Please let me know

app.psgi

#!/usr/bin/env perl use strict; use warnings; use FindBin; use lib "$FindBin::Bin/../lib"; use webapp; use Dancer2::Plugin::Auth::OAuth; use Dancer2::Plugin::Auth::OAuth::Provider::dev; Dancer2::Plugin::Auth::OAuth->on_plugin_import(providers => { 'dev' = +> { client_id => 'xxxxxxxxxxxxxxxxx', client_secret => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' }, }); Dancer2::Plugin::Auth::OAuth::Provider::dev->config(); webapp->to_app;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133936]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2024-04-25 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found