Maciej Pasternacki > Apache2-Authen-OdinAuth-0.6 > Crypt::OdinAuth

Download:
Apache2-Authen-OdinAuth-0.6.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.2   Source  

NAME ^

Crypt::OdinAuth - Cryptographic calculations for the OdinAuth SSO system

VERSION ^

Version 0.2

SYNOPSIS ^

This module exports functions for calculating and verifying signed cookies for OdinAuth SSO Apache handler.

    use Crypt::OdinAuth;

    Crypt::OdinAuth::hmac_for('secret', 'login_name', 'role1,role2,role3', 1337357387, 'netcat')
    #=> '349b7135f43bd4c0111564960e7d9d583dde0c5c'

    Crypt::OdinAuth::cookie_for('secret', 'login_name', 'role1,role2,role3', 'netcat')
    #=> 'login_name-role1,role2,role3-1337357638-7ec415a6816c8e9dab7b788e1262769ef80af7d8'

SUBROUTINES ^

hmac_for(secret, user, roles, timestamp, user_agent)

cookie_for(secret, user, roles, user_agent)

check_cookie(secret, cookie, user_agent)

AUTHOR ^

Maciej Pasternacki, <maciej at pasternacki.net>

BUGS ^

Please report any bugs or feature requests to bug-apache2-authen-odinauth at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Apache2-Authen-OdinAuth. 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 Crypt::OdinAuth

You can also look for information at:

ACKNOWLEDGEMENTS ^

LICENSE AND COPYRIGHT ^

Copyright 2012 Maciej Pasternacki.

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.

syntax highlighting: