user.models.tan

Attributes

DEFAULT_EXPIRES_AFTER

Classes

TAN

A single use TAN for temporarily elevating access or to serve

Module Contents

user.models.tan.DEFAULT_EXPIRES_AFTER[source]
class user.models.tan.TAN[source]

Bases: onegov.core.orm.Base, onegov.core.orm.mixins.TimestampMixin, onegov.core.orm.mixins.ContentMixin

A single use TAN for temporarily elevating access or to serve as a second authentication factor through e.g. a mobile phone number.

__tablename__ = 'tans'[source]
__table_args__[source]
id: sqlalchemy.Column[uuid.UUID][source]
hashed_tan: sqlalchemy.Column[str][source]
scope: sqlalchemy.Column[str][source]
client: sqlalchemy.Column[str][source]
expired: sqlalchemy.Column[datetime.datetime | None][source]
is_active(expires_after: datetime.timedelta | None = DEFAULT_EXPIRES_AFTER) bool[source]
expire() None[source]