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: Column[uuid.UUID][source]
hashed_tan: Column[str][source]
scope: Column[str][source]
client: Column[str][source]
expired: Column[datetime | None][source]
is_active(expires_after: datetime.timedelta | None = DEFAULT_EXPIRES_AFTER) bool[source]
expire() None[source]