#!/usr/bin/perl
use strict;
use warnings;
use utf8;
#$MOJO_HOME/etc/plugins/auth.conf
#Default configuration for Ado::Plugin::Auth
{ auth_methods => ['ado', 'facebook'],
#Add your routes definitions here.
routes => [
#the login form
{ route => '/login/:auth_method',
via => ['GET', 'POST'],
to => {
auth_method => 'ado',
cb => \&Ado::Plugin::Auth::login
},
},
{ route => '/logout',
to => {cb => \&Ado::Plugin::Auth::logout}
},
{ route => '/test/authenticateduser',
over => {authenticated => 1},
to => 'test#authenticateduser'
},
],
};