Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Need advice on AD authentication confirguration in Dancer2 app.

by chandantul (Scribe)
on May 12, 2021 at 03:26 UTC ( [id://11132442]=note: print w/replies, xml ) Need Help??


in reply to Re: Need advice on AD authentication confirguration in Dancer2 app.
in thread Need advice on AD authentication confirguration in Dancer2 app.

Hello, I made the authentication works for AD for this Dacer2 app by the below code but i would like to add the logout option post authentication. How i can achive the same> Please advice with code snippet if possible.

use webapp; use Plack::Builder; use Authen::Simple::ActiveDirectory; use Log::Log4perl; my $ad = Authen::Simple::ActiveDirectory->new( host => 'ldap://addev.dev.abc.com', principal => 'addev.dev.abc.com', timeout => '60', log => Log::Log4perl->get_logger('Authen::Simple::ActiveDirectory' +) ); builder { enable "Auth::Basic", authenticator => $ad; my ( $username, $password ) = @_; webapp->to_app; };
  • Comment on Re^2: Need advice on AD authentication confirguration in Dancer2 app.
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-19 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found