o
    š"4g:	  ã                   @   s"   G d d„ dƒZ e dƒZdd„ ZdS )c                   @   s¬   e Zd Zdd„ Zdd„ Zedd„ ƒZedd„ ƒZed	d
„ ƒZedd„ ƒZ	edd„ ƒZ
edd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZedefdd„ƒZedefdd„ƒZdS )ÚAppSettingsc                 C   s
   || _ d S ©N)Úprefix)Úselfr   © r   úa/var/www/html/authentication-server/venv/lib/python3.10/site-packages/allauth/mfa/app_settings.pyÚ__init__   s   
zAppSettings.__init__c                 C   s   ddl m} || j| |ƒS )Né    )Úget_setting)Úallauth.utilsr	   r   )r   ÚnameÚdfltr	   r   r   r   Ú_setting   s   zAppSettings._settingc                 C   ó   |   dd¡S )NÚADAPTERz%allauth.mfa.adapter.DefaultMFAAdapter©r   ©r   r   r   r   r   
   ó   zAppSettings.ADAPTERc                 C   s   |   di ¡S )NÚFORMSr   r   r   r   r   r      r   zAppSettings.FORMSc                 C   r   )z/
        The number of recovery codes.
        ÚRECOVERY_CODE_COUNTé
   r   r   r   r   r   r      ó   zAppSettings.RECOVERY_CODE_COUNTc                 C   r   )zL
        The period that a TOTP code will be valid for, in seconds.
        ÚTOTP_PERIODé   r   r   r   r   r   r      r   zAppSettings.TOTP_PERIODc                 C   r   )z5
        The number of digits for TOTP codes
        ÚTOTP_DIGITSé   r   r   r   r   r   r       r   zAppSettings.TOTP_DIGITSc                 C   r   )z
        The issuer.
        ÚTOTP_ISSUERÚ r   r   r   r   r   r   '   r   zAppSettings.TOTP_ISSUERc                 C   s:   ddl m} ddlm} |  dd¡}|js|r|dƒ‚|S )zX
        Don't use this on production. Useful for development & E2E tests only.
        r   )Úsettings)ÚImproperlyConfiguredÚTOTP_INSECURE_BYPASS_CODENz:MFA_TOTP_INSECURE_BYPASS_CODE is for testing purposes only)Údjango.confr   Údjango.core.exceptionsr   r   ÚDEBUG)r   r   r   Úcoder   r   r   r   .   s   
ÿz%AppSettings.TOTP_INSECURE_BYPASS_CODEc                 C   s   ddg}|   d|¡S )NÚrecovery_codesÚtotpÚSUPPORTED_TYPESr   )r   r   r   r   r   r&   =   s   zAppSettings.SUPPORTED_TYPESc                 C   r   )NÚWEBAUTHN_ALLOW_INSECURE_ORIGINFr   r   r   r   r   r'   B   r   z*AppSettings.WEBAUTHN_ALLOW_INSECURE_ORIGINÚreturnc                 C   ó   d| j v o
|  dd¡S )NÚwebauthnÚPASSKEY_LOGIN_ENABLEDF©r&   r   r   r   r   r   r+   F   ó   ÿz!AppSettings.PASSKEY_LOGIN_ENABLEDc                 C   r)   )Nr*   ÚPASSKEY_SIGNUP_ENABLEDFr,   r   r   r   r   r.   L   r-   z"AppSettings.PASSKEY_SIGNUP_ENABLEDN)Ú__name__Ú
__module__Ú__qualname__r   r   Úpropertyr   r   r   r   r   r   r   r&   r'   Úboolr+   r.   r   r   r   r   r      s2    








r   ÚMFA_c                 C   s
   t t| ƒS r   )ÚgetattrÚ_app_settings)r   r   r   r   Ú__getattr__V   s   
r7   N)r   r6   r7   r   r   r   r   Ú<module>   s    R