CAS Authentication

This auth module adds the ability to authenticate wiki users using a Jasig CAS server.

It solves FeatureRequests/authCas.

Parts of this module are based on the code from TracCasPlugin.

Installation

Download it from:

Put cas.py into the wiki configuration directory (or any other directory in python path).

Add it to the wikiconfig.py configuration file:

   1 class Config(...):
   2     ...
   3     import cas
   4     auth = [cas.CASAuth("https://sso.example.com/cas")]
   5     ...

Known issues

This module uses request.http_redirect method in login/logout parts, which will generate "Attempt to send headers twice!" warnings/error in moin's log output.

That's harmless, you can ignore this error.

History

See there: http://hg.moinmo.in/moin/1.8/file/tip/MoinMoin/auth/cas.py

Comments / Feedback

...

MoinMoin: RichardLiao/CasAuthentication (last edited 2009-09-01 12:23:23 by ThomasWaldmann)