tardis.tardis_portal.auth.localdb_auth – Local DB authentication

DjangoAuthBackend Objects

class tardis.tardis_portal.auth.localdb_auth.DjangoAuthBackend

Authenticate against Django’s Model Backend.

authenticate(request)

authenticate a user, this expect the user will be using form based auth and the username and password will be passed in as POST variables.

Parameters:request (django.http.HttpRequest) – a HTTP Request instance
get_user(user_id)

DjangoGroupProvider Objects

class tardis.tardis_portal.auth.localdb_auth.DjangoGroupProvider
getGroupById(id)

return the group associated with the id:

{"id": 123,

“display”: “Group Name”,}

getGroups(request)

return an iteration of the available groups.

name = u'django_group'
searchGroups(**filter)

DjangoUserProvider Objects

class tardis.tardis_portal.auth.localdb_auth.DjangoUserProvider
getUserById(id)

return the user dictionary in the format of:

{"id": 123,

“display”: “John Smith”, “email”: “john@example.com“}

name = u'django_user'