GithubHelp home page GithubHelp logo

apache2-mod_auth_memcookie's Introduction

AuthMemCookie Apache Module

The "Auth MemCookie" is an Apache v2.0 Authentication and authorization modules are based on "cookie" Authentication mechanism.

The module doesn’t make Authentication by it self, but verify if Authentication "the cookie" is valid for each url protected by the module. The module validate also if the "authenticated user" have authorization to access url.

Authentication is made externally by an Authentication html form page and all Authentication information necessary to the module a stored in memcached identified by the cookie value "Authentication session id" by this login page.

News in this version (v1.1)

  • Correct handling of "=" in value of the memcache session (E. Dumas).
  • Don't breaks basic authentication (Steve Gaarder)
  • multi users/groups require support
  • no more memory leak when mc_aget2 return NULL
  • apache 2.4 partial support (no use the new security model)
  • some portability issue (apr_strtok in place of strtok, and variable definition in front of function)

Build dependency

You must have compiled and installed:

Compilation

You must modify Makefile:

  • Set correctly the MY_APXS variable to point to the apache "apxs" scripts.

  • Add the memcache library path in MY_LDFLAGS variable if necessary (-L)

How to compile:

# make
# make install

After that the "mod_auth_memcookie.so" is generated in apache "modules" directory.

#Documentation

All the documentation are here: http://authmemcookie.sourceforge.net/

Fork

https://github.com/openSUSE/apache2-mod_auth_memcookie

  • this fork seam to done by opensuse team
  • ported the code to libmemcached.
  • made sure that the session data contains no \r or \n.
  • made sure that the cookie is a valid md5sum.
  • added Auth_memCookie_SessionHeaders option to specify which headers should be cleared from the input headers and taken from the session data.
  • added szAuth_memCookie_AuthentificationURI to configure that the session is created by doing a subrequest to the specfied
  • URI and using the returned headers (uses the configured SessionHeaders).
  • added Auth_memCookie_AuthentificationHeader option to tell the module that it can take the user name from the specified header when it creates the session.
  • added Auth_memCookie_AuthentificationURIOnlyAuth to make it * just run the authentification steps for the subrequest (data is taken from the input headers in that case).
  • added Auth_memCookie_CookieDomain to specify a domain for the session cookie.
  • added Auth_memCookie_AllowAnonymous to specify that no session is required for the request.
  • added Auth_memCookie_CommandHeader to specify a way to issue commands for session managemant: "login" makes it ignore the AllowAnonymous flag, "logout" deletes the session.

https://github.com/richp10/apache2-mod_auth_memcookie-1.0.3

  • apache 2.4
  • PAtched version of libmemcached that fixes Apache error: undefined symbol: mcm_buf_len

http://search.cpan.org/~piers/Apache-Auth-AuthMemCookie-0.02/lib/Apache/Auth/AuthMemCookie.pm

  • perl version !

apache2-mod_auth_memcookie's People

Contributors

adrianschroeter avatar bugfinder avatar mlschroe avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.