

 Amazon Redshift non supporterà più l'uso delle UDF di Python dopo il 30 giugno 2026. Inizieremo ad applicarlo gradualmente. Per ulteriori informazioni sulla fine del ciclo di vita di Python e sulle opzioni di migrazione, consulta il [post sul blog](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/) pubblicato il 30 giugno 2025. 

Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.

# Metodi di autenticazione
<a name="odbc20-authentication-ssl"></a>

Per proteggere i dati da accessi non autorizzati, gli archivi dati di Amazon Redshift richiedono l'autenticazione di tutte le connessioni tramite le credenziali utente.

La seguente tabella riporta le opzioni di connessione obbligatorie e facoltative per ogni metodo di autenticazione che può essere utilizzato per connettersi al driver ODBC Amazon Redshift versione 2.x:


| Metodo di autenticazione | Richiesto | Facoltativo | 
| --- | --- | --- | 
|  Standard  |  +  Host <br />+  Porta  <br />+  Database <br />+  UID <br />+  Password   |   | 
|  Profilo IAM  |  +  Host <br />+  Porta <br />+  Database <br />+  IAM <br />+  Profilo   |  +  ClusterID <br />+  Region <br />+  AutoCreate <br />+  EndpointURL <br />+  StsEndpointURL <br />+  InstanceProfile    **ClusterID** e **Region** devono essere impostati su **Host** se non sono impostati separatamente.    | 
|  Credenziali IAM  |  +  Host <br />+  Porta  <br />+  Database <br />+  IAM <br />+  AccessKeyID <br />+  SecretAccessKey   |  +  ClusterID <br />+  Region <br />+  AutoCreate <br />+  EndpointURL <br />+  StsEndpointURL <br />+  SessionToken <br />+  UID    **ClusterID** e **Region** devono essere impostati su **Host** se non sono impostati separatamente.    | 
|  AD FS  |  +  Host <br />+  Porta  <br />+  Database <br />+  IAM <br />+  plugin\_name <br />+  UID <br />+  Password <br />+  IdP\_Host <br />+  IdP\_Port   |  +  ClusterID <br />+  Region <br />+  AutoCreate <br />+  EndpointUrl <br />+  StsEndpointUrl <br />+  Preferred\_Role <br />+  accesso ToRp <br />+  ssl\_insecure    **ClusterID** e **Region** devono essere impostati su **Host** se non sono impostati separatamente.    | 
|  Azure AD  |  +  Host <br />+  Porta <br />+  Database <br />+  IAM <br />+  plugin\_name <br />+  UID <br />+  Password <br />+  idp\_tenant <br />+  Client\_ID <br />+  Client\_Secret   |  +  ClusterID <br />+  Region <br />+  AutoCreate <br />+  EndpointUrl <br />+  StsEndpointUrl <br />+  Preferred\_Role <br />+  dbgroups\_filter    **ClusterID** e **Region** devono essere impostati su **Host** se non sono impostati separatamente.    | 
|  JWT  |  +  Host <br />+  Porta <br />+  Database <br />+  IAM <br />+  plugin\_name <br />+  web\_identity\_token   |  +  provider\_name   | 
|  Okta  |  +  Host <br />+  Porta <br />+  Database <br />+  IAM <br />+  plugin\_name <br />+  UID <br />+  Password <br />+  IdP\_Host <br />+  App\_Name <br />+  App\_ID   |  +  ClusterID <br />+  Region <br />+  AutoCreate <br />+  EndpointUrl <br />+  StsEndpointUrl <br />+  Preferred\_Role    **ClusterID** e **Region** devono essere impostati su **Host** se non sono impostati separatamente.    | 
| Ping Federate |  +  Host <br />+  Porta <br />+  Database <br />+  IAM <br />+  plugin\_name <br />+  UID <br />+  Password <br />+  IdP\_Host <br />+  IdP\_Port   |  +  ClusterID <br />+  Region <br />+  AutoCreate <br />+  EndpointUrl <br />+  StsEndpointUrl <br />+  Preferred\_Role <br />+  ssl\_insecure <br />+  partner\_spid    **ClusterID** e **Region** devono essere impostati su **Host** se non sono impostati separatamente.    | 
|  Browser Azure AD  |  +  Host <br />+  Porta <br />+  Database <br />+  IAM <br />+  plugin\_name <br />+  idp\_tenant <br />+  Client\_ID <br />+  UID   |  +  ClusterID <br />+  Region <br />+  AutoCreate <br />+  EndpointUrl <br />+  StsEndpointUrl <br />+  Preferred\_Role <br />+  dbgroups\_filter <br />+  IdP\_ Response\_Timeout <br />+  listen\_port    **ClusterID** e **Region** devono essere impostati su **Host** se non sono impostati separatamente.    | 
|  Browser SAML  |  +  Host <br />+  Porta <br />+  Database <br />+  IAM <br />+  plugin\_name <br />+  login\_url <br />+  UID   |  +  ClusterID <br />+  Region <br />+  AutoCreate <br />+  EndpointUrl <br />+  StsEndpointUrl <br />+  Preferred\_Role <br />+  dbgroups\_filter <br />+  IdP\_ Response\_Timeout <br />+  listen\_port    **ClusterID** e **Region** devono essere impostati su **Host** se non sono impostati separatamente.    | 
|  Auth Profile  |  +  Host <br />+  Porta <br />+  Database <br />+  AccessKeyID <br />+  SecretAccessKey   |   | 
|  Browser Azure AD OAUTH2  |  +  Host <br />+  Porta  <br />+  Database <br />+  IAM <br />+  plugin\_name <br />+  idp\_tenant <br />+  Client\_ID <br />+  UID   |  +  ClusterID <br />+  Region <br />+  EndpointUrl <br />+  IdP\_ Response\_Timeout <br />+  listen\_port <br />+  scope <br />+  provider\_name    **ClusterID** e **Region** devono essere impostati su **Host** se non sono impostati separatamente.    | 
|  AWS Centro di identità IAM  |  +  Host <br />+  Database <br />+  plugin\_name <br />+  idc\_region <br />+  issuer\_url   |  +  idc\_client\_display\_name <br />+  idP\_Response\_Timeout <br />+  listen\_port   | 

## Utilizzo di un servizio di credenziali esterno
<a name="odbc20-authentication-external"></a>

Oltre al supporto integrato per AD FS, Azure AD e Okta, la versione Windows del driver ODBC di Amazon Redshift fornisce anche il supporto per altri servizi di credenziali. Il driver può autenticare le connessioni utilizzando qualsiasi plug-in del fornitore di SAML-based credenziali di tua scelta. 

Per configurare un servizio di credenziali esterno su Windows:

1. Crea un profilo IAM che specifichi il plug-in del provider di credenziali e altri parametri di autenticazione in base alle esigenze. Il profilo deve essere ASCII-encoded e deve contenere la seguente coppia chiave-valore, `PluginPath` dov'è il percorso completo dell'applicazione del plugin: 

   ```
   plugin_name = {{PluginPath}}
   ```

   Ad esempio:

   ```
   plugin_name = C:\Users\kjson\myapp\CredServiceApp.exe 
   ```

   Per informazioni su come creare un profilo, consulta [Utilizzo di un profilo di configurazione](https://docs.aws.amazon.com/redshift/latest/mgmt/options-for-providing-iam-credentials.html#using-configuration-profile) nella Guida alla gestione dei cluster Amazon Redshift.

1. Configura il driver per l'utilizzo di questo profilo. Il driver rileva e utilizza le impostazioni di autenticazione specificate nel profilo.