angee.iam.auth
Django authentication backend adapters owned by IAM.
can_authenticate_user
python
def can_authenticate_user(user: Any) -> boolReturn 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) -> boolReturn whether user may authenticate through IAM login surfaces.
get_user
python
def get_user(user_id: Any) -> Any | NoneReturn the session user, or None when the row is gone.