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;