Attivare gli acquisti in-app utilizzando un client OAuth gestito da Google
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questa pagina descrive come attivare Identity-Aware Proxy (IAP) per una Google Cloud risorsa utilizzando un client OAuth gestito da Google.
Quando attivi l'IAP su una risorsa utilizzando un client OAuth gestito da Google, solo gli utenti dell'organizzazione in cui è contenuta la risorsa possono accedervi. Se vuoi consentire agli utenti esterni all'organizzazione di accedere a una risorsa con IAP abilitato, abilita le credenziali OAuth personalizzate.
Attivare gli acquisti in-app per una nuova risorsa
Le nuove Google Cloud risorse non hanno l'IAP abilitato.
Completa i seguenti passaggi per attivare IAP in una nuova risorsa.
Nell'elenco delle risorse, vai alle impostazioni della risorsa per cui vuoi configurare le credenziali OAuth personalizzate.
Seleziona la casella di controllo Abilita le credenziali OAuth personalizzate per consentire agli utenti esterni all'organizzazione di accedere a questa applicazione.
Nella finestra di dialogo Configurazione OAuth, inserisci un ID client e un client secret.
(Facoltativo) Per generare automaticamente un ID client e un client secret, fai clic su
Genera automaticamente le credenziali.
Puoi scaricare le credenziali client in un file CSV o eliminarle. Dopo aver salvato le modifiche, le credenziali client personalizzate non possono essere recuperate, quindi ti consigliamo di salvarle.
Se elimini le credenziali, viene eliminato anche il client OAuth generato automaticamente.
Per salvare le modifiche, fai clic su Salva. Il salvataggio delle modifiche non modifica
lo stato di attivazione degli acquisti IAP.
Passare a un client OAuth gestito da Google
Per modificare le risorse utilizzando un client OAuth personalizzato in modo da utilizzare un client OAuth gestito da Google, segui questi passaggi.
Nell'elenco delle risorse, vai alle impostazioni della risorsa per la quale vuoi passare a un client OAuth gestito da Google.
Deseleziona la casella di controllo Abilita le credenziali OAuth personalizzate per consentire agli utenti esterni all'organizzazione di accedere a questa applicazione.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[],[],null,["# Enable IAP using a Google-managed OAuth client\n\nThis page describes how to enable Identity-Aware Proxy (IAP) for\na Google Cloud resource, using a Google-managed\nOAuth client.\n\nWhen enabling IAP on a resource using a Google-managed\nOAuth client, only users within the organization in which the resource is\ncontained can access that resource. If you want to allow users outside of\nthe organization access to an IAP-enabled resource, [enable\ncustom OAuth credentials](#custom-oauth-credentials).\n\nEnable IAP for a new resource\n-----------------------------\n\nNew Google Cloud resources don't have IAP enabled.\nComplete the following steps to enable IAP on a new resource.\n\n1. In the Google Cloud console, go to the IAP page.\n\n\n [Go to the IAP page](https://console.cloud.google.com/security/iap)\n2. Click the **Applications** tab.\n\n3. From the list of resources, select the resource for which you want to enable\n IAP.\n\n4. In the **IAP** column, click the toggle to the on position.\n\n5. For the **Turn on IAP** option, click **Turn on**.\n\nSet up custom OAuth credentials for a resource\n----------------------------------------------\n\nTo allow users outside of the organization access to an\nIAP-enabled resource, complete the following steps.\n\n1. In the Google Cloud console, go to the IAP page.\n\n\n [Go to the IAP page](https://console.cloud.google.com/security/iap)\n2. Click the **Applications** tab.\n\n3. In the list of resources, go to the settings of the resource for which you\n want to configure custom OAuth credentials.\n\n4. Select the **Enable custom OAuth credentials to allow users outside of this\n organization to access this application** checkbox.\n\n5. In the **OAuth configuration** dialog, enter a client ID and secret.\n\n6. Optional: To have a client ID and secret generated for you, click\n **Auto generate credentials**.\n\n You can download the client credentials to a CSV file, or delete the\n credentials. After you save your changes, custom client credentials cannot\n be retrieved, so we recommend that you save your credentials.\n\n If you delete the credentials, the auto-generated OAuth client\n is also deleted.\n7. To save your changes, Click **Save**. Saving your changes does not change\n the IAP enabled state.\n\nChange to a Google-managed OAuth client\n---------------------------------------\n\nYou can change resources using a custom OAuth client to use a Google-managed\nOAuth client by completing the following steps.\n\n1. In the Google Cloud console, go to the IAP page.\n\n\n [Go to the IAP page](https://console.cloud.google.com/security/iap)\n2. Click the **Applications** tab.\n\n3. In the list of resources, go to the settings of the resource for which you\n want to change to use a Google-managed OAuth client.\n\n4. Deselect the **Enable custom OAuth credentials to allow users outside of this\n organization to access this application** checkbox.\n\n5. Click **Save**."]]