Models reference

TODO: these models still need to be stripped and documented for “v2 2.0”.

class lizard_auth_server.models.UserProfile(id, user, created_at, updated_at)[source]
exception DoesNotExist
exception MultipleObjectsReturned
all_organisation_roles(portal, return_explanation=False)[source]

Return a queryset of OrganisationRoles that apply to this profile.

If return_explanation is True, return a dict with explanatory results, instead.

has_access(portal)[source]

Returns True when this user has access to this portal.

is_active

Returns True when the account is active, meaning the User has not been deactivated by an admin.

Note: unrelated to account activation.

organisation

Return the name of one of this user’s organisations, or None.

For backward compatibility. Instead of many Organisation objects, a user used to have a single organisation string.

class lizard_auth_server.models.Portal(*args, **kwargs)[source]

A portal. If secret/key change, the portal website has to be updated too!

exception DoesNotExist
exception MultipleObjectsReturned
class lizard_auth_server.models.Organisation(id, name, unique_id)[source]
exception DoesNotExist
exception MultipleObjectsReturned