Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Apache2::AuthCookie 3.18

    Download button

    No screenshots available
    Downloads: 502  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Michael Schout | More programs
    Perl Artistic License / FREE
    January 1st, 2008, 10:56 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Apache2::AuthCookie description

    A Perl Authentication and Authorization module via cookies.c

    Apache2::AuthCookie is a Perl Authentication and Authorization module via cookies.

    SYNOPSIS

    Make sure your mod_perl is at least 1.24, with StackedHandlers, MethodHandlers, Authen, and Authz compiled in.
    # In httpd.conf or .htaccess:
    PerlModule Sample::AuthCookieHandler
    PerlSetVar WhatEverPath /
    PerlSetVar WhatEverLoginScript /login.pl

    # use to alter how "require" directives are matched. Can be "Any" or "All".
    # If its "Any", then you must only match Any of the "require" directives. If
    # its "All", then you must match All of the require directives.
    #
    # Default: All
    PerlSetVar WhatEverSatisfy Any

    # The following line is optional - it allows you to set the domain
    # scope of your cookie. Default is the current domain.
    PerlSetVar WhatEverDomain .yourdomain.com

    # Use this to only send over a secure connection
    PerlSetVar WhatEverSecure 1

    # Use this if you want user session cookies to expire if the user
    # doesn't request a auth-required or recognize_user page for some
    # time period. If set, a new cookie (with updated expire time)
    # is set on every request.
    PerlSetVar WhatEverSessionTimeout +30m

    # to enable the HttpOnly cookie property, use HttpOnly.
    # this is an MS extension. See:
    # http://msdn.microsoft.com/workshop/author/dhtml/httponly_cookies.asp
    PerlSetVar WhatEverHttpOnly 1

    # Usually documents are uncached - turn off here
    PerlSetVar WhatEverCache 1

    # Use this to make your cookies persistent (+2 hours here)
    PerlSetVar WhatEverExpires +2h

    # Use to make AuthCookie send a P3P header with the cookie
    # see http://www.w3.org/P3P/ for details about what the value
    # of this should be
    PerlSetVar WhatEverP3P "CP="...""

    # These documents require user to be logged in.
    < Location /protected >
    AuthType Sample::AuthCookieHandler
    AuthName WhatEver
    PerlAuthenHandler Sample::AuthCookieHandler- >authenticate
    PerlAuthzHandler Sample::AuthCookieHandler- >authorize
    require valid-user
    < /Location >

    # These documents don't require logging in, but allow it.
    < FilesMatch ".ok$" >
    AuthType Sample::AuthCookieHandler
    AuthName WhatEver
    PerlFixupHandler Sample::AuthCookieHandler- >recognize_user
    < /FilesMatch >

    # This is the action of the login.pl script above.
    < Files LOGIN >
    AuthType Sample::AuthCookieHandler
    AuthName WhatEver
    SetHandler perl-script
    PerlResponseHandler Sample::AuthCookieHandler- >login
    < /Files >


    WARNING! This is an early version of Apache::AuthCookie for mod_perl version 2. If you are running under mod_perl version 2, this module should be considered of beta quality. If you are a subclass author and would like to see additional changes (besides those listed in README.modperl2) to the interface provided by this module under mod_perl version 2, please contact me at mschout@gkg.net. The interface for mod_perl version 1 has not changed.

    Apache::AuthCookie allows you to intercept a user's first unauthenticated access to a protected document. The user will be presented with a custom form where they can enter authentication credentials. The credentials are posted to the server where AuthCookie verifies them and returns a session key.

    The session key is returned to the user's browser as a cookie. As a cookie, the browser will pass the session key on every subsequent accesses. AuthCookie will verify the session key and re-authenticate the user.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Apache authentication | Apache authorization | Perl module | Perl | authentication | authorization

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM