codekingpro/portable-devtools
114k
1"""2 flask_security3 ~~~~~~~~~~~~~~4 5 Flask-Security is a Flask extension that aims to add comprehensive security6 to Flask applications.7 8 :copyright: (c) 2012-2019 by Matt Wright.9 :copyright: (c) 2019-2024 by J. Christopher Wagner.10 :license: MIT, see LICENSE for more details.11"""12 13# flake8: noqa: F40114from .changeable import admin_change_password15from .core import (16 Security,17 RoleMixin,18 UserMixin,19 WebAuthnMixin,20 FormInfo,21 current_user,22)23from .datastore import (24 UserDatastore,25 SQLAlchemyUserDatastore,26 AsaList,27 MongoEngineUserDatastore,28 PeeweeUserDatastore,29 PonyUserDatastore,30 SQLAlchemySessionUserDatastore,31)32from .decorators import (33 auth_token_required,34 anonymous_user_required,35 handle_csrf,36 http_auth_required,37 login_required,38 roles_accepted,39 roles_required,40 auth_required,41 permissions_accepted,42 permissions_required,43 unauth_csrf,44)45from .forms import (46 Form,47 ChangePasswordForm,48 ForgotPasswordForm,49 LoginForm,50 RegisterForm,51 ResetPasswordForm,52 PasswordlessLoginForm,53 ConfirmRegisterForm,54 SendConfirmationForm,55 TwoFactorRescueForm,56 TwoFactorSetupForm,57 TwoFactorVerifyCodeForm,58 VerifyForm,59 unique_identity_attribute,60)61from .mail_util import MailUtil, EmailValidateException62from .oauth_glue import OAuthGlue63from .oauth_provider import FsOAuthProvider64from .password_util import PasswordUtil65from .phone_util import PhoneUtil66from .recovery_codes import (67 MfRecoveryCodesUtil,68 MfRecoveryForm,69 MfRecoveryCodesForm,70)71from .signals import (72 confirm_instructions_sent,73 login_instructions_sent,74 password_changed,75 password_reset,76 reset_password_instructions_sent,77 tf_code_confirmed,78 tf_profile_changed,79 tf_security_token_sent,80 tf_disabled,81 user_authenticated,82 user_unauthenticated,83 user_confirmed,84 user_registered,85 user_not_registered,86 us_security_token_sent,87 us_profile_changed,88 wan_deleted,89 wan_registered,90)91from .totp import Totp92from .twofactor import tf_send_security_token93from .tf_plugin import TwoFactorSelectForm94from .unified_signin import (95 UnifiedSigninForm,96 UnifiedSigninSetupForm,97 UnifiedSigninSetupValidateForm,98 UnifiedVerifyForm,99 us_send_security_token,100)101from .username_util import UsernameUtil102from .utils import (103 SmsSenderBaseClass,104 SmsSenderFactory,105 check_and_get_token_status,106 get_hmac,107 get_request_attr,108 get_token_status,109 get_url,110 hash_password,111 check_and_update_authn_fresh,112 login_user,113 logout_user,114 lookup_identity,115 naive_utcnow,116 password_breached_validator,117 password_complexity_validator,118 password_length_validator,119 pwned,120 send_mail,121 transform_url,122 uia_phone_mapper,123 uia_email_mapper,124 uia_username_mapper,125 url_for_security,126 verify_password,127 verify_and_update_password,128)129from .webauthn import (130 WebAuthnRegisterForm,131 WebAuthnRegisterResponseForm,132 WebAuthnSigninForm,133 WebAuthnSigninResponseForm,134 WebAuthnDeleteForm,135 WebAuthnVerifyForm,136)137from .webauthn_util import WebauthnUtil138 139__version__ = "5.4.3"140 