Oltre ai metodi d’autenticazione forniti da Crowdin, puoi usare la funzionalità Single Sing-On (SSO) per autenticare istantaneamente i tuoi utenti con i loro nomi utenti esistenti.
Questa funzione è disponibile solo nei piani di organizzazione.
L’ibrido SSO di Crowdin è in realtà il modo più veloce per creare il profilo traduttore rispetto ad un SSO classico come OAuth o SAML.
L’intero processo di razionalizzazione funziona come segue:
If you pass a login name or email to the SSO URL that is already taken at Crowdin, the user will be asked to correct the registration data.
To enable SSO for your projects, go to the account settings page, click on the SSO tab, activate the Enable Single Sign-On option and specify a valid provider’s name.
Below is the list of parameters you can pass to Crowdin for automatic registration. In this step, you will need to pack the data as JSON array before encryption (See the sample integrations in popular programming languages below).
Parametro | Richiesto | Tipo | Predefinito | Esempio | Note |
---|---|---|---|---|---|
user_id | sì | int | 12345678901 | A unique identifier for the user (e.g., the user_id in your system). | |
accesso | sì | nella stringa | johndoe | Nome d'accesso di Crowdin. Dovrebbe corrispondere allo schema [a-z,0-9] | |
user_email | sì | nella stringa | john.doe@mail.com | Indirizzo email valido | |
scadenza | sì | int | 1406124776 | marca oraria unix valida. Nota! Non impostare oltre 30 minuti dall'orario UTC corrente. | |
display_name | nella stringa | John Doe | Nome reale o pseudonimo | ||
locale | nella stringa | en_US | de_DE | Codice locale | |
progetti | nella stringa | docx-project,csv-project | Un elenco separato da virgole di identificativi del progetto di Crowdin cui il traduttore dovrebbe inizialmente avere accesso | ||
sesso | int | 0 | 1 | 2 | 1: maschio, 2: femmina | |
ruolo | int | 0 | 0 | 1 | 2 | Il ruolo dell'utente nei progetti associati. 0: traduttore, 1: revisore, 2: manager | |
lingue | nella stringa | ro,uk,fr | Comma separated list of Crowdin language codes the user should have access to. Usato per progetti con politiche d'accesso alla lingua moderate | ||
redirect_to | nella stringa | https://crowdin.com/profile | https://crowdin.com/project/your-project-url | L'URL di Crowdin cui il traduttore dovrebbe arrivare dopo la registrazione | |
return_crowdin_login | int | 0 | 1 | Restituisce il parametro GET crowdin_login (funziona in combinazione al parametro redirect_to) |
The output JSON array should look like the following:
{
"user_id":"12345678901",
"login":"johndoe",
"user_email":"john.doe@mail.com",
"display_name":"John Doe",
"locale":"de-DE",
"gender":1,
"projects":"docx-project,csv-project",
"expiration":1406124776,
"role":0,
"redirect_to":"https:\/\/crowdin.com\/project\/docx-project"
}
The JSON created in the previous step must be encrypted using AES 128-CBC, with the first 16 characters of your Crowdin account API key acting as the cipher key, and the last 16 characters as the initialization vector. The encrypted text should be transformed now to Base64 text.
The SSO URL should use the following pattern:
Where:
{ENCRYPTED_STRING} is the Base64 text you created in the previous step.
{CROWDIN_USER_LOGIN} is the login name of your Crowdin account. Note: this must be the same account you used to create the projects you want the translator to have access to.
We’ve created the code snippets for the most major programming languages. Remember to replace CROWDIN_USER_LOGIN, CROWDIN_USER_API_KEY with your personal authentication information.