Skip to content

angee.iam.auth

Django authentication backend adapters owned by IAM.

can_authenticate_user

python
def can_authenticate_user(user: Any) -> bool

Return whether user is a login-capable human principal.

ModelBackend

python
class ModelBackend(DjangoModelBackend)

Password backend whose session reload uses IAM's named bypass.

user_can_authenticate

python
def user_can_authenticate(user: Any) -> bool

Return whether user may authenticate through IAM login surfaces.

get_user

python
def get_user(user_id: Any) -> Any | None

Return the session user, or None when the row is gone.

Released under the AGPL-3.0 License.