அங்கீகார

உபயோகிப்போர் பதிவு

வலைபெயர்ப்புடுக்கான இயல்புநிலை அமைப்பு, புதிய பயனர்களின் பதிவைக் கையாள இணையத்தின் ஒரு படிவமான பைதான்-சமூக-ஆத் பயன்படுத்துவதாகும். அவர்களின் மின்னஞ்சலை உறுதிப்படுத்திய பிறகு, ஒரு புதிய பயனர் மூன்றாம் தரப்பு சேவைகளில் ஒன்றைப் பயன்படுத்துவதன் மூலம் பங்களிக்கவோ அல்லது அங்கீகரிக்கவோ முடியும்.

You can also turn off registration of new users using REGISTRATION_OPEN.

The authentication attempts are subject to வீதத்தைக் கட்டுப்படுத்துதல்.

அங்கீகார பின்தளத்தில்

The built-in solution of Django is used for authentication, including various social options to do so. Using it means you can import the user database of other Django-based projects (see பூட்டில் இருந்து இடம்பெயர்கிறது).

மற்ற வழிகளுக்கும் எதிராக அங்கீகரிக்க சாங்கோ கூடுதலாக அமைக்கப்படலாம்.

See also

அங்கீகார அமைப்புகள் describes how to configure authentication in the official Docker image.

சமூக ஏற்பு

Thanks to Welcome to Python Social Auth’s documentation!, Weblate support authentication using many third party services such as GitLab, Ubuntu, Fedora, etc.

Please check their documentation for generic configuration instructions in Django Framework.

Note

முன்னிருப்பாக, சரிபார்க்கப்பட்ட மின்னஞ்சல் முகவரியை வழங்க வலைபெயர்ப்பு மூன்றாம் தரப்பு அங்கீகார சேவைகளை நம்பியுள்ளது. நீங்கள் பயன்படுத்த விரும்பும் சில சேவைகள் இதை ஆதரிக்கவில்லை என்றால், தயவுசெய்து அவற்றுக்கான ஃபோர்ச்_மெயில்_வலைடு கட்டமைப்பதன் மூலம் வலைபெயர்ப்பு பக்கத்தில் மின்னஞ்சல் சரிபார்ப்பை செயல்படுத்தவும். உதாரணத்திற்கு:

SOCIAL_AUTH_OPENSUSE_FORCE_EMAIL_VALIDATION = True

See also

Pipeline

Enabling individual backends is quite easy, it's just a matter of adding an entry to the AUTHENTICATION_BACKENDS setting and possibly adding keys needed for a given authentication method. Please note that some backends do not provide user e-mail by default, you have to request it explicitly, otherwise Weblate will not be able to properly credit contributions users make.

Hint

Most of the authentication backends require HTTPS. Once HTTPS is enabled in your web server please configure Weblate to report it properly using ENABLE_HTTPS, or by WEBLATE_ENABLE_HTTPS in the Docker container.

openid ஏற்பு

ஓபன்ஐடி அடிப்படையிலான சேவைகளுக்கு இது வழக்கமாக அவற்றை இயக்கும் ஒரு சேதி. பின்வரும் பிரிவு ஓபன்சச், ஃபெடோரா மற்றும் உபுண்டு ஆகியவற்றிற்கான திறந்த அங்கீகாரத்தை செயல்படுத்துகிறது:

# Authentication configuration
AUTHENTICATION_BACKENDS = (
    "social_core.backends.email.EmailAuth",
    "social_core.backends.suse.OpenSUSEOpenId",
    "social_core.backends.ubuntu.UbuntuOpenId",
    "social_core.backends.fedora.FedoraOpenId",
    "weblate.accounts.auth.WeblateUserBackend",
)

See also

OpenID

அறிவிலிமையம் ஏற்பு

நீங்கள் கிதுபில் ஒரு oauth விண்ணப்பத்தை பதிவு செய்ய வேண்டும், பின்னர் அதன் எல்லா ரகசியங்களையும் வலைபெயர்ப்பு செய்யச் சொல்ல வேண்டும்:

# Authentication configuration
AUTHENTICATION_BACKENDS = (
    "social_core.backends.github.GithubOAuth2",
    "social_core.backends.email.EmailAuth",
    "weblate.accounts.auth.WeblateUserBackend",
)

# Social auth backends setup
SOCIAL_AUTH_GITHUB_KEY = "GitHub Client ID"
SOCIAL_AUTH_GITHUB_SECRET = "GitHub Client Secret"
SOCIAL_AUTH_GITHUB_SCOPE = ["user:email"]

அறிவிலிமையம் முகவரி ஐ `` https: // வலைபெயர்ப்பு சேவையகம்/கணக்குகள்/முழுமையான/கிட்அப்/`` எனக் கட்டமைக்க வேண்டும்.

There are similar authentication backends for GitHub for Organizations and GitHub for Teams. Their settings are named SOCIAL_AUTH_GITHUB_ORG_* and SOCIAL_AUTH_GITHUB_TEAM_*, and they require additional setting of the scope - SOCIAL_AUTH_GITHUB_ORG_NAME or SOCIAL_AUTH_GITHUB_TEAM_ID. Their callback URLs are https://WEBLATE SERVER/accounts/complete/github-org/ and https://WEBLATE SERVER/accounts/complete/github-teams/.

Note

Weblate provided callback URL during the authentication includes configured domain. In case you get errors about URL mismatch, you might want to fix this, see சரியான தள களத்தை அமைக்கவும்.

See also

GitHub

github ee ஏற்பு

நீங்கள் ஒரு oauth பயன்பாட்டை அறிவிலிமையம் ee இல் பதிவுசெய்து அதன் அனைத்து ரகசியங்களையும் வலைபெயர்ப்பு செய்யச் சொல்ல வேண்டும்:

# Authentication configuration
AUTHENTICATION_BACKENDS = (
    "social_core.backends.github_enterprise.GithubEnterpriseOAuth2",
    "social_core.backends.email.EmailAuth",
    "weblate.accounts.auth.WeblateUserBackend",
)

# Social auth backends setup
SOCIAL_AUTH_GITHUB_ENTERPRISE_KEY = "GitHub OAuth App Client ID"
SOCIAL_AUTH_GITHUB_ENTERPRISE_SECRET = "GitHub OAuth App Client Secret"
SOCIAL_AUTH_GITHUB_ENTERPRISE_URL = "https://git.example.com/"
SOCIAL_AUTH_GITHUB_ENTERPRISE_API_URL = "https://git.example.com/api/v3/"
SOCIAL_AUTH_GITHUB_ENTERPRISE_SCOPE = ["user:email"]

அறிவிலிமையம் oauth பயன்பாட்டை `` https: // வலைபெயர்ப்பு சேவையகம்/கணக்குகள்/முழுமையான/கிட்அப்-எண்டர்பிரைச்/`` எனக் கேட்க முகவரி ஐ கட்டமைக்க வேண்டும்.

அதற்கு பதிலாக அறிவிலிமையம் ஓத் பயன்பாடு, அறிவிலிமையம் பயன்பாட்டையும் பயன்படுத்தலாம். அறிவிலிமையம் பயன்பாட்டு அனுமதிகள் களஞ்சியங்கள், அமைப்பு மற்றும்/அல்லது பயனர் மட்டத்தில் வழங்கப்படலாம். நீங்கள் அறிவிலிமையம் பயன்பாட்டைப் பயன்படுத்த முடிவு செய்தால், நீங்கள் அணுகல்: பயனர்களுக்கான படிக்க மட்டும் இசைவு - <மின்னஞ்சல் முகவரிகள்> மற்றும் அமைப்பு - <உறுப்பினர்கள்> ஆகியவற்றை இயக்க வேண்டும்.

Note

Weblate provided callback URL during the authentication includes configured domain. In case you get errors about URL mismatch, you might want to fix this, see சரியான தள களத்தை அமைக்கவும்.

பிட்பக்கெட் ஏற்பு

நீங்கள் பிட்பக்கெட்டில் ஒரு விண்ணப்பத்தை பதிவு செய்ய வேண்டும், பின்னர் அதன் அனைத்து ரகசியங்களையும் வலைபெயர்ப்பு செய்யுங்கள்:

# Authentication configuration
AUTHENTICATION_BACKENDS = (
    "social_core.backends.bitbucket.BitbucketOAuth2",
    "social_core.backends.email.EmailAuth",
    "weblate.accounts.auth.WeblateUserBackend",
)

# Social auth backends setup
SOCIAL_AUTH_BITBUCKET_OAUTH2_KEY = "Bitbucket Client ID"
SOCIAL_AUTH_BITBUCKET_OAUTH2_SECRET = "Bitbucket Client Secret"
SOCIAL_AUTH_BITBUCKET_OAUTH2_VERIFIED_EMAILS_ONLY = True

Note

Weblate provided callback URL during the authentication includes configured domain. In case you get errors about URL mismatch, you might want to fix this, see சரியான தள களத்தை அமைக்கவும்.

See also

Bitbucket

கூகிள் oauth 2

Google OAuth 2 ஐப் பயன்படுத்த, நீங்கள் ஒரு விண்ணப்பத்தை <https://console.tevelopers.google.com/> இல் பதிவுசெய்து Google+ பநிஇ ஐ இயக்க வேண்டும்.

The redirect URL is https://WEBLATE SERVER/accounts/complete/google-oauth2/.

# Authentication configuration
AUTHENTICATION_BACKENDS = (
    "social_core.backends.google.GoogleOAuth2",
    "social_core.backends.email.EmailAuth",
    "weblate.accounts.auth.WeblateUserBackend",
)

# Social auth backends setup
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = "Client ID"
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = "Client secret"

Note

Weblate provided callback URL during the authentication includes configured domain. In case you get errors about URL mismatch, you might want to fix this, see சரியான தள களத்தை அமைக்கவும்.

See also

Google

பேச்புக் ஓத் 2

oauth 2 சேவைகளுடன் வழக்கம்போல, உங்கள் விண்ணப்பத்தை பேச்புக்கில் பதிவு செய்ய வேண்டும். இது முடிந்ததும், அதைப் பயன்படுத்த நீங்கள் வலைபெயர்ப்பு அமைக்கலாம்:

The redirect URL is https://WEBLATE SERVER/accounts/complete/facebook/.

# Authentication configuration
AUTHENTICATION_BACKENDS = (
    "social_core.backends.facebook.FacebookOAuth2",
    "social_core.backends.email.EmailAuth",
    "weblate.accounts.auth.WeblateUserBackend",
)

# Social auth backends setup
SOCIAL_AUTH_FACEBOOK_KEY = "key"
SOCIAL_AUTH_FACEBOOK_SECRET = "secret"
SOCIAL_AUTH_FACEBOOK_SCOPE = ["email", "public_profile"]

Note

Weblate provided callback URL during the authentication includes configured domain. In case you get errors about URL mismatch, you might want to fix this, see சரியான தள களத்தை அமைக்கவும்.

See also

Facebook

அறிவிலிஆய்வு oauth 2

அறிவிலிஆய்வு OAuth 2 ஐப் பயன்படுத்த, நீங்கள் ஒரு விண்ணப்பத்தை <https://gitlab.com/profile/applications> இல் பதிவு செய்ய வேண்டும்.

திருப்பி விடப்பட்ட முகவரி `` https: // வலைபெயர்ப்பு சேவையகம்/கணக்குகள்/முழுமையான/அறிவிலிஆய்வு/`` மற்றும் ரீட்_சர் நோக்கத்தைக் குறிக்கவும் என்பதை உறுதிப்படுத்தவும்.

# Authentication configuration
AUTHENTICATION_BACKENDS = (
    "social_core.backends.gitlab.GitLabOAuth2",
    "social_core.backends.email.EmailAuth",
    "weblate.accounts.auth.WeblateUserBackend",
)

# Social auth backends setup
SOCIAL_AUTH_GITLAB_KEY = "Application ID"
SOCIAL_AUTH_GITLAB_SECRET = "Secret"
SOCIAL_AUTH_GITLAB_SCOPE = ["read_user"]

# If you are using your own GitLab
# SOCIAL_AUTH_GITLAB_API_URL = 'https://gitlab.example.com/'

Note

Weblate provided callback URL during the authentication includes configured domain. In case you get errors about URL mismatch, you might want to fix this, see சரியான தள களத்தை அமைக்கவும்.

See also

GitLab

கிடியா ஓத் 2

அறிவிலிதேநீர் OAUTH 2 ஐப் பயன்படுத்த, நீங்கள் ஒரு பயன்பாட்டை `` https: // அறிவிலிதேநீர் சேவையகம்/பயனர்/அமைப்புகள்/பயன்பாடுகள்`` இல் பதிவு செய்ய வேண்டும்.

The redirect URL is https://WEBLATE SERVER/accounts/complete/gitea/.

# Authentication configuration
AUTHENTICATION_BACKENDS = (
    "social_core.backends.gitea.GiteaOAuth2",
    "social_core.backends.email.EmailAuth",
    "weblate.accounts.auth.WeblateUserBackend",
)

# Social auth backends setup
SOCIAL_AUTH_GITEA_KEY = ""
SOCIAL_AUTH_GITEA_SECRET = ""

# If you are using your own Gitea
SOCIAL_AUTH_GITEA_API_URL = "https://gitea.example.com/"

Note

Weblate provided callback URL during the authentication includes configured domain. In case you get errors about URL mismatch, you might want to fix this, see சரியான தள களத்தை அமைக்கவும்.

Note

The configuration above also works with Forgejo; for an example of production deployment with Forgejo, see Codeberg Translate.

See also

Gitea

நுண்மென் அசூர் ஆக்டிவ் டைரக்டரி

அங்கீகாரத்திற்காக பொதுவான அல்லது குறிப்பிட்ட குத்தகைதாரர்களைப் பயன்படுத்த வலைபெயர்ப்பு கட்டமைக்கப்படலாம்.

திருப்பி விடப்பட்ட முகவரி `` https: // வலைபெயர்ப்பு சேவையகம்/கணக்குகள்/முழுமையான/அசுரெட்-ஓஅ் 2/`` பொதுவான மற்றும் `` https: // வலைபெயர்ப்பு சேவையகம்/கணக்குகள்/முழுமையான/அசுரெட்-குத்தகைதாரர்-ஓஅ் 2/`` ` குறிப்பிட்ட ஏற்பு.

உங்களுக்கு பின்வருபவை தேவைப்படும்:

  • Application (client) ID can be obtained from application page. Object ID is not used in Weblate.

  • Directory (tenant) ID is needed for tenant scoped authentication, what is usually desired.

  • Secret value is displayed once you generate a secret for an application. Secret ID is not used in Weblate.

# Azure AD common

# Authentication configuration
AUTHENTICATION_BACKENDS = (
    "social_core.backends.azuread.AzureADOAuth2",
    "social_core.backends.email.EmailAuth",
    "weblate.accounts.auth.WeblateUserBackend",
)

# OAuth2 keys
SOCIAL_AUTH_AZUREAD_OAUTH2_KEY = ""
SOCIAL_AUTH_AZUREAD_OAUTH2_SECRET = ""
# Azure AD Tenant

# Authentication configuration
AUTHENTICATION_BACKENDS = (
    "social_core.backends.azuread_tenant.AzureADTenantOAuth2",
    "social_core.backends.email.EmailAuth",
    "weblate.accounts.auth.WeblateUserBackend",
)

# Application (client) ID
SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_KEY = ""
# Secret value
SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_SECRET = ""
# Directory (tenant) ID
SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_TENANT_ID = ""

Note

Weblate provided callback URL during the authentication includes configured domain. In case you get errors about URL mismatch, you might want to fix this, see சரியான தள களத்தை அமைக்கவும்.

மந்தமான

ச்லாக் OAuth 2 ஐப் பயன்படுத்த, நீங்கள் ஒரு விண்ணப்பத்தை <https://api.slack.com/apps> இல் பதிவு செய்ய வேண்டும்.

திருப்பி விடப்பட்ட முகவரி https: // வலைபெயர்ப்பு சேவையகம்/கணக்குகள்/முழுமையான/மந்தமான/.

# Authentication configuration
AUTHENTICATION_BACKENDS = (
    "social_core.backends.slack.SlackOAuth2",
    "social_core.backends.email.EmailAuth",
    "weblate.accounts.auth.WeblateUserBackend",
)

# Social auth backends setup
SOCIAL_AUTH_SLACK_KEY = ""
SOCIAL_AUTH_SLACK_SECRET = ""

Note

Weblate provided callback URL during the authentication includes configured domain. In case you get errors about URL mismatch, you might want to fix this, see சரியான தள களத்தை அமைக்கவும்.

See also

Slack

அங்கீகார முறை பெயர்கள் மற்றும் ஐகான்களை மீறுதல்

அமைப்புகளை `` சமூக_ஆத்_ <பெயர்> _image`` மற்றும் `` சமூக_ஆத்_ <பெயர்> _title`` போன்ற அமைப்புகளைப் பயன்படுத்தி அங்கீகார முறை காட்சி பெயர் மற்றும் ஐகானை நீங்கள் மேலெழுதலாம். எடுத்துக்காட்டாக, auth0 க்கு பெயரிடுவது போல் இருக்கும்:

SOCIAL_AUTH_AUTH0_IMAGE = "custom.svg"
SOCIAL_AUTH_AUTH0_TITLE = "Custom auth"

கடவுச்சொல் அங்கீகாரத்தை முடக்கு

E-mail and password authentication can be turned off by removing social_core.backends.email.EmailAuth from AUTHENTICATION_BACKENDS. Always keep weblate.accounts.auth.WeblateUserBackend there, it is needed for core Weblate functionality.

மின்னஞ்சல் அங்கீகாரத்தை முடக்குவது மின்னஞ்சல் தொடர்பான அனைத்து செயல்பாட்டையும் முடக்கும்-பயனர் அழைப்பு அல்லது கடவுச்சொல் மீட்டமைப்பு நற்பொருத்தம்.

Tip

நிர்வாகி இடைமுகத்திற்கான கடவுச்சொல் அங்கீகாரத்தை நீங்கள் இன்னும் பயன்படுத்தலாம், நீங்கள் அங்கு கைமுறையாக உருவாக்கும் பயனர்களுக்கு. /நிர்வாகி/உள்நுழைவு/ க்கு செல்லவும்.

எடுத்துக்காட்டாக, opensuse திறந்த ஐடி வழங்குநரை மட்டுமே பயன்படுத்தும் அங்கீகாரத்தை பின்வருவனவற்றைப் பயன்படுத்தி அடைய முடியும்:

# Authentication configuration
AUTHENTICATION_BACKENDS = (
    "social_core.backends.suse.OpenSUSEOpenId",
    "weblate.accounts.auth.WeblateUserBackend",
)

கடவுச்சொல் ஏற்பு

The default settings.py comes with a reasonable set of AUTH_PASSWORD_VALIDATORS:

  • கடவுச்சொற்கள் உங்கள் பிற தனிப்பட்ட தகவலுடன் ஒத்ததாக இருக்க முடியாது.

  • கடவுச்சொற்களில் குறைந்தது 10 எழுத்துக்கள் இருக்க வேண்டும்.

  • கடவுச்சொற்கள் பொதுவாகப் பயன்படுத்தப்படும் கடவுச்சொல்லாக இருக்க முடியாது.

  • கடவுச்சொற்கள் முற்றிலும் எண் இருக்க முடியாது.

  • கடவுச்சொற்கள் ஒரு எழுத்துப்பிழை அல்லது இடைவெளியைக் கொண்டிருக்க முடியாது.

  • கடந்த காலங்களில் நீங்கள் பயன்படுத்திய கடவுச்சொல்லை கடவுச்சொற்கள் பொருத்த முடியாது.

உங்கள் கடவுச்சொல் கொள்கையுடன் பொருந்த இந்த அமைப்பைத் தனிப்பயனாக்கலாம்.

கூடுதலாக, நீங்கள் django-zxcvbn-password இது கடவுச்சொல் சிரமத்தின் மிகவும் யதார்த்தமான மதிப்பீடுகளை அளிக்கிறது மற்றும் கடவுச்சொற்களை ஒரு குறிப்பிட்ட வாசலுக்குக் கீழே நிராகரிக்க அனுமதிக்கிறது.

saml ஏற்பு

Added in version 4.1.1.

உள்ளமைவுக்கான பைதான் சமூக அங்கீகார வழிமுறைகளைப் பின்பற்றவும். குறிப்பிடத்தக்க வேறுபாடுகள்:

  • `` சமூக_ஆத்_சேம்ல்_என்ஏபிஎல்_ஐடிஎச்`` இல் `` வலைபெயர்ப்பு`` என்று அழைக்கப்பட வேண்டிய ஒற்றை ஐடிபியை வலைபெயர்ப்பு ஆதரிக்கிறது.

  • saml xml மேனிலை தரவு முகவரி /கணக்குகள்/மெட்டாடேட்டா/saml/ ஆகும்.

  • பின்வரும் அமைப்புகள் தானாகவே நிரப்பப்படுகின்றன: `` சமூக_ஆத்_சேம்ல்_எச்பி_என்டிட்டி_ஐடி``, `` சமூக_ஆத்_சாமல்_டெக்னிகல்_சான்டாக்ட்``, `` சமூக_ஆத்_சாம்ல்_சான்டாக்ட்``

எடுத்துக்காட்டு உள்ளமைவு:

# Authentication configuration
AUTHENTICATION_BACKENDS = (
    "social_core.backends.email.EmailAuth",
    "social_core.backends.saml.SAMLAuth",
    "weblate.accounts.auth.WeblateUserBackend",
)

# Social auth backends setup
SOCIAL_AUTH_SAML_SP_ENTITY_ID = f"https://{SITE_DOMAIN}/accounts/metadata/saml/"
SOCIAL_AUTH_SAML_SP_PUBLIC_CERT = "-----BEGIN CERTIFICATE-----"
SOCIAL_AUTH_SAML_SP_PRIVATE_KEY = "-----BEGIN PRIVATE KEY-----"
SOCIAL_AUTH_SAML_ENABLED_IDPS = {
    "weblate": {
        "entity_id": "https://idp.testshib.org/idp/shibboleth",
        "url": "https://idp.testshib.org/idp/profile/SAML2/Redirect/SSO",
        "x509cert": "MIIEDjCCAvagAwIBAgIBADA ... 8Bbnl+ev0peYzxFyF5sQA==",
        "attr_name": "full_name",
        "attr_username": "username",
        "attr_email": "email",
    }
}
SOCIAL_AUTH_SAML_ORG_INFO = {
    "en-US": {
        "name": "example",
        "displayname": "Example Inc.",
        "url": "http://example.com"
    }
}
SOCIAL_AUTH_SAML_TECHNICAL_CONTACT = {
    "givenName": "Tech Gal",
    "emailAddress": "technical@example.com"
}
SOCIAL_AUTH_SAML_SUPPORT_CONTACT = {
    "givenName": "Support Guy",
    "emailAddress": "support@example.com"
}

இயல்புநிலை உள்ளமைவு பயனர் விவரங்களை பின்வரும் பண்புகளிலிருந்து பிரித்தெடுக்கிறது, அவற்றை வழங்க உங்கள் ஐடிபியை உள்ளமைக்கவும்:

பண்புக்கூறு

saml uri குறிப்பு

முழுப்பெயர்

urn:oid:2.5.4.3

முதல் பெயர்

urn:oid:2.5.4.42

கடைசி பெயர்

urn:oid:2.5.4.4

மின்னஞ்சல்

urn:oid:0.9.2342.19200300.100.1.3

பயனர்பெயர்

urn:oid:0.9.2342.19200300.100.1.1

Hint

The example above and the Docker image define an IDP called weblate. You might need to configure this string as Relay in your IDP.

ldap ஏற்பு

சாங்கோ-ஆத்-எல்.டி.ஏ.பி தொகுப்பைப் பயன்படுத்தி எல்.டி.ஏ.பி அங்கீகாரத்தை சிறப்பாக அடைய முடியும். வழக்கமான வழிமுறைகள் வழியாக நீங்கள் அதை நிறுவலாம்:

# Using PyPI
uv pip install 'django-auth-ldap>=1.3.0'

# Using apt-get
apt-get install python-django-auth-ldap

Hint

This package is included in the Docker container, see டோக்கரைப் பயன்படுத்தி நிறுவுதல்.

Note

There are some incompatibilities in the Python LDAP 3.1.0 module, which might prevent you from using that version. If you get error AttributeError: 'module' object has no attribute '_trace_level', downgrading python-ldap to 3.0.0 might help.

நீங்கள் தொகுப்பு நிறுவப்பட்டதும், அதை சாங்கோ அங்கீகாரத்தில் இணைக்கலாம்:

# Add LDAP backed, keep Django one if you want to be able to sign in
# even without LDAP for admin account
AUTHENTICATION_BACKENDS = (
    "django_auth_ldap.backend.LDAPBackend",
    "weblate.accounts.auth.WeblateUserBackend",
)

# LDAP server address
AUTH_LDAP_SERVER_URI = "ldaps://ldap.example.net"

# DN to use for authentication
AUTH_LDAP_USER_DN_TEMPLATE = "cn=%(user)s,o=Example"
# Depending on your LDAP server, you might use a different DN
# like:
# AUTH_LDAP_USER_DN_TEMPLATE = 'ou=users,dc=example,dc=com'

# List of attributes to import from LDAP upon sign in
# Weblate stores full name of the user in the full_name attribute
AUTH_LDAP_USER_ATTR_MAP = {
    "full_name": "name",
    # Use the following if your LDAP server does not have full name
    # Weblate will merge them later
    # 'first_name': 'givenName',
    # 'last_name': 'sn',
    # Email is required for Weblate (used in VCS commits)
    "email": "mail",
}

# Hide the registration form
REGISTRATION_OPEN = False

Note

You should remove 'social_core.backends.email.EmailAuth' from the AUTHENTICATION_BACKENDS setting, otherwise users will be able to set their password in Weblate, and authenticate using that. Keeping 'weblate.accounts.auth.WeblateUserBackend' is still needed in order to make permissions and facilitate anonymous users. It will also allow you to sign in using a local admin account, if you have created it (e.g. by using createadmin).

பிணைப்பு கடவுச்சொல்லைப் பயன்படுத்துதல்

அங்கீகாரத்திற்காக நீங்கள் நேரடி பிணைப்பை பயன்படுத்த முடியாவிட்டால், நீங்கள் தேடலைப் பயன்படுத்த வேண்டும், மேலும் தேடலுக்கு பிணைக்க ஒரு பயனரை வழங்க வேண்டும். உதாரணத்திற்கு:

import ldap
from django_auth_ldap.config import LDAPSearch

AUTH_LDAP_BIND_DN = ""
AUTH_LDAP_BIND_PASSWORD = ""
AUTH_LDAP_USER_SEARCH = LDAPSearch(
    "ou=users,dc=example,dc=com", ldap.SCOPE_SUBTREE, "(uid=%(user)s)"
)

செயலில் உள்ள அடைவு ஒருங்கிணைப்பு

import ldap
from django_auth_ldap.config import LDAPSearch, NestedActiveDirectoryGroupType

AUTH_LDAP_BIND_DN = "CN=ldap,CN=Users,DC=example,DC=com"
AUTH_LDAP_BIND_PASSWORD = "password"

# User and group search objects and types
AUTH_LDAP_USER_SEARCH = LDAPSearch(
    "CN=Users,DC=example,DC=com", ldap.SCOPE_SUBTREE, "(sAMAccountName=%(user)s)"
)

# Make selected group a superuser in Weblate
AUTH_LDAP_USER_FLAGS_BY_GROUP = {
    # is_superuser means user has all permissions
    "is_superuser": "CN=weblate_AdminUsers,OU=Groups,DC=example,DC=com",
}

# Map groups from AD to Weblate
AUTH_LDAP_GROUP_SEARCH = LDAPSearch(
    "OU=Groups,DC=example,DC=com", ldap.SCOPE_SUBTREE, "(objectClass=group)"
)
AUTH_LDAP_GROUP_TYPE = NestedActiveDirectoryGroupType()
AUTH_LDAP_FIND_GROUP_PERMS = True

# Optionally enable group mirroring from LDAP to Weblate
# AUTH_LDAP_MIRROR_GROUPS = True

cas ஏற்பு

சாங்கோ-காச்-என்சி போன்ற தொகுப்பைப் பயன்படுத்தி சிஏஎச் அங்கீகாரத்தை அடைய முடியும்.

படி ஒன்று cas வழியாக பயனரின் மின்னஞ்சல் புலத்தை வெளிப்படுத்துகிறது. இது cas சேவையகத்திலேயே கட்டமைக்கப்பட வேண்டும், மேலும் cas v1 பண்புகளை ஆதரிக்காததால் குறைந்தபட்சம் cas v2 ஐ இயக்க வேண்டும்.

படி இரண்டு உங்கள் cas சேவையகம் மற்றும் பண்புகளைப் பயன்படுத்த வலைபெயர்ப்பைப் புதுப்பிக்கிறது.

சாங்கோ-காச்-என்சி ஐ நிறுவ:

uv pip install django-cas-ng

Once you have the package installed you can hook it up to the Django authentication system by modifying the settings.py file:

# Add CAS backed, keep the Django one if you want to be able to sign in
# even without LDAP for the admin account
AUTHENTICATION_BACKENDS = (
    "django_cas_ng.backends.CASBackend",
    "weblate.accounts.auth.WeblateUserBackend",
)

# CAS server address
CAS_SERVER_URL = "https://cas.example.net/cas/"

# Add django_cas_ng somewhere in the list of INSTALLED_APPS
INSTALLED_APPS = (..., "django_cas_ng")

இறுதியாக, பயனர் பொருளுக்கு மின்னஞ்சல் புலத்தை வரைபடமாக்க ஒரு சமிக்ஞையைப் பயன்படுத்தலாம். இது வேலை செய்ய நீங்கள் சாங்கோ-சிஏஎச்-என்சி தொகுப்பிலிருந்து சமிக்ஞையை இறக்குமதி செய்து இந்த சமிக்ஞையுடன் உங்கள் குறியீட்டை இணைக்க வேண்டும். அமைப்புகள் கோப்பில் இதைச் செய்வது சிக்கல்களை ஏற்படுத்தும், எனவே அதை வைக்க பரிந்துரைக்கப்படுகிறது:

from django_cas_ng.signals import cas_user_authenticated
from django.dispatch import receiver


@receiver(cas_user_authenticated)
def update_user_email_address(sender, user=None, attributes=None, **kwargs):
    # If your CAS server does not always include the email attribute
    # you can wrap the next two lines of code in a try/catch block.
    user.email = attributes["email"]
    user.save()

See also

Django CAS NG

மூன்றாம் தரப்பு சாங்கோ அங்கீகாரத்தை கட்டமைத்தல்

பொதுவாக எந்த சாங்கோ அங்கீகார சொருகி வலைபெயர்ப்புடுடன் வேலை செய்ய வேண்டும். சொருகி வழிமுறைகளைப் பின்பற்றவும், வலைபெயர்ப்பு பயனர் பின்தளத்தில் நிறுவப்பட்டிருக்க நினைவில் கொள்ளுங்கள்.

Typically the installation will consist of adding an authentication backend to AUTHENTICATION_BACKENDS and installing an authentication app (if there is any) into INSTALLED_APPS:

AUTHENTICATION_BACKENDS = (
    # Add authentication backend here
    "weblate.accounts.auth.WeblateUserBackend",
)

INSTALLED_APPS += (
    # Install authentication app here
)

இரண்டு காரணி ஏற்பு

Added in version 5.7.

Hint

இரண்டு காரணி ஏற்பு உள்நுழைய கடவுச்சொல்லை விட அதிகமாக தேவைப்படுவதன் மூலம் உங்கள் கணக்கிற்கு மற்றொரு பாதுகாப்பை சேர்க்கிறது.

வலைபெயர்ப்பு பின்வரும் இரண்டாவது காரணிகளை ஆதரிக்கிறது:

பாதுகாப்பு விசைகள் (வெப்அத்ன்)

இரண்டும், பாச்கிகள் மற்றும் பாதுகாப்பு விசைகள் ஆதரிக்கப்படுகின்றன.

பயனர் சரிபார்ப்பை உள்ளடக்கியதால் தொடுதல், முக ஏற்பு, சாதன கடவுச்சொல் அல்லது முள் ஆகியவற்றைப் பயன்படுத்தி உங்கள் அடையாளத்தை பாச்கேச் சரிபார்க்கவும்.

பாதுகாப்பு விசைகள் என்பது வெப்அத்ன் நற்சான்றிதழ்கள், அவை அங்கீகாரத்தின் இரண்டாவது காரணியாக மட்டுமே பயன்படுத்தப்படலாம், மேலும் இவை பயனர் இருப்பை மட்டுமே உறுதிப்படுத்துகின்றன.

அங்கீகார பயன்பாடுகள் (TOTP)

Authenticator apps and browser extensions like Aegis, Bitwarden, Google Authenticator, 1Password, Authy, Microsoft Authenticator, etc. generate time-based one-time passwords that are used as a second factor to verify your identity when prompted during sign-in.

மீட்பு குறியீடுகள்

உங்கள் சாதனத்திற்கான அணுகலை இழந்துவிட்டால், இரண்டு காரணி அங்கீகாரக் குறியீடுகளைப் பெற முடியாவிட்டால், உங்கள் கணக்கை அணுக மீட்புக் குறியீடுகள் பயன்படுத்தப்படலாம்.

உங்கள் மீட்பு குறியீடுகளை உங்கள் கடவுச்சொல்லைப் போலவே பாதுகாப்பாக வைத்திருங்கள். பிட்வார்டன், 1 பாச்வேர்ட், உண்மையான அல்லது கீப்பர் போன்ற கடவுச்சொல் நிர்வாகியுடன் அவற்றை சேமிக்க பரிந்துரைக்கிறோம்.

Each user can configure this in கணக்கு and second factor will be required to sign in addition to the existing authentication method.

This can be enforced for users at the project (see இரண்டு காரணி அங்கீகாரத்தை செயல்படுத்தியது) or team level.

அமல்படுத்தப்பட்ட இரண்டு காரணி அங்கீகாரத்துடன் கூடிய குழுவின் அனுமதிகள் கட்டமைக்கப்படாத பயனர்களுக்கு பயன்படுத்தப்படாது.