NAME

Dancer::Plugin::Auth::Krb5 - kerberos authentication for Dancer web apps

VERSION

Version 0.02

SYNOPSIS

use Dancer::Plugin::Auth::Krb5;

my $auth = krb5_auth($username, $password);
if ($auth->errors){
    # auth failed
}else{
    # auth success
}

CONFIGURATION

session: 'SessionEngine'
plugins:
    Auth::Krb5:
        realm: 'REALM.DOMAIN.COM'

reference Dancer::Session for 'SessionEngine'

METHODS

use Dancer::Plugin::Auth::Krb5;

my $auth = krb5_auth($username, $password);

user

$auth->user;

return username

errors

$auth->errors;

return error message

realm

$auth->realm;

return realm

AUTHOR

Hypo Lin, <hlin at cpan.org>

BUGS

Please report any bugs or feature requests to bug-dancer-plugin-auth-krb5 at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dancer-Plugin-Auth-Krb5. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Dancer::Plugin::Auth::Krb5

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2012 Hypo Lin.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.