airflow.providers.fab.auth_manager.models

Package Contents

Classes

Action

Represents permission actions such as can_read.

Resource

Represents permission object such as User or Dag.

Role

Represents a user role to which permissions can be assigned.

Permission

Permission pair comprised of an Action + Resource combo.

User

Represents an Airflow user which has roles assigned to it.

RegisterUser

Represents a user registration.

Attributes

Identity

metadata

mapper_registry

assoc_permission_role

assoc_user_role

airflow.providers.fab.auth_manager.models.Identity[source]
airflow.providers.fab.auth_manager.models.metadata[source]
airflow.providers.fab.auth_manager.models.mapper_registry[source]
class airflow.providers.fab.auth_manager.models.Action[source]

Bases: flask_appbuilder.models.sqla.Model

Represents permission actions such as can_read.

__tablename__ = 'ab_permission'[source]
id[source]
name[source]
__repr__()[source]

Return repr(self).

class airflow.providers.fab.auth_manager.models.Resource[source]

Bases: flask_appbuilder.models.sqla.Model

Represents permission object such as User or Dag.

__tablename__ = 'ab_view_menu'[source]
id[source]
name[source]
__eq__(other)[source]

Return self==value.

__neq__(other)[source]
__repr__()[source]

Return repr(self).

airflow.providers.fab.auth_manager.models.assoc_permission_role[source]
class airflow.providers.fab.auth_manager.models.Role[source]

Bases: flask_appbuilder.models.sqla.Model

Represents a user role to which permissions can be assigned.

__tablename__ = 'ab_role'[source]
id[source]
name[source]
permissions[source]
__repr__()[source]

Return repr(self).

class airflow.providers.fab.auth_manager.models.Permission[source]

Bases: flask_appbuilder.models.sqla.Model

Permission pair comprised of an Action + Resource combo.

__tablename__ = 'ab_permission_view'[source]
__table_args__ = ()[source]
id[source]
action_id[source]
action[source]
resource_id[source]
resource[source]
__repr__()[source]

Return repr(self).

airflow.providers.fab.auth_manager.models.assoc_user_role[source]
class airflow.providers.fab.auth_manager.models.User[source]

Bases: flask_appbuilder.models.sqla.Model, airflow.auth.managers.models.base_user.BaseUser

Represents an Airflow user which has roles assigned to it.

property created_by_fk[source]
property changed_by_fk[source]
property is_authenticated[source]
property is_active[source]
property is_anonymous[source]
property perms[source]
__tablename__ = 'ab_user'[source]
id[source]
first_name[source]
last_name[source]
username[source]
password[source]
active[source]
email[source]
last_login[source]
login_count[source]
fail_login_count[source]
roles[source]
created_on[source]
changed_on[source]
created_by[source]
changed_by[source]
classmethod get_user_id()[source]
get_id()[source]
get_name()[source]
get_full_name()[source]
__repr__()[source]

Return repr(self).

class airflow.providers.fab.auth_manager.models.RegisterUser[source]

Bases: flask_appbuilder.models.sqla.Model

Represents a user registration.

__tablename__ = 'ab_register_user'[source]
id[source]
first_name[source]
last_name[source]
username[source]
password[source]
email[source]
registration_date[source]
registration_hash[source]
airflow.providers.fab.auth_manager.models.add_index_on_ab_user_username_postgres(table, conn, **kw)[source]
airflow.providers.fab.auth_manager.models.add_index_on_ab_register_user_username_postgres(table, conn, **kw)[source]

Was this entry helpful?