[OPEN-ILS-DEV] Thanks -- Drupal module that authenticates against Evergreen now available

Graham Fawcett graham.fawcett at gmail.com
Sun Mar 1 10:29:02 EST 2009


On Thu, Feb 26, 2009 at 8:33 PM, Mark Jordan <mjordan at sfu.ca> wrote:
> Hi,
>
> Just a quick thanks to Mike and Niles for info that helped me with my Drupal module. I've got it working with both the Evergreen XML-RPC and JSON gateways. If anyone is interested, a request-for-comment version of the module is available at http://drupalib.interoperating.info/node/206

Very cool!

In case it's of help to anyone, I have a similar (if very basic)
authentication backend for Django. This one is XML-RPC only; I wanted
something with only Python-standard-lib dependencies.

http://svn.open-ils.org/trac/ILS-Contrib/browser/servres/trunk/conifer/custom

It's new, alpha-quality code, but it seems to do the trick.

Integration into your Django app is pretty straightforward; here's a
settings.py snippet:

    AUTHENTICATION_BACKENDS = [
        'django.contrib.auth.backends.ModelBackend',
        'conifer.custom.auth_evergreen.EvergreenAuthBackend']

    EVERGREEN_XMLRPC_SERVER = '192.168.1.10'

Note that this is a backend only; it does not provide a login form,
nor any specialized permissions/group logic (though you write in the
latter fairly easily). For info on backends, see

http://docs.djangoproject.com/en/dev/topics/auth/#other-authentication-sources

Comments welcome.

Best,
Graham


More information about the Open-ils-dev mailing list