Vai al contenuto principale
PUT
/
auth-integrations
/
{authIntegrationId}
Aggiorna un'integrazione di autenticazione
curl --request PUT \
  --url https://api.altostrat.io/auth-integrations/{authIntegrationId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Azure AD - Aziendale",
  "type": "azure",
  "config": {
    "client_id": "a1b2c3d4-e5f6-a7b8-c9d0-e1f2a3b4c5d6",
    "client_secret": "IL_TUO_CLIENT_SECRET",
    "tenant": "organizations"
  }
}'
{
  "id": "c4d5e6f7-8a9b-0c1d-2e3f-4a5b6c7d8e9f",
  "name": "Azure AD - Aziendale",
  "type": "azure",
  "config": {
    "client_id": "a1b2c3d4-e5f6-a7b8-c9d0-e1f2a3b4c5d6",
    "tenant": "organizations"
  },
  "test_url": "https://captive.altostr.at/auth-test/c4d5e6f7...?signature=...",
  "created_at": "2025-10-28T10:00:00Z"
}

Authorizations

Authorization
string
header
required

Autenticazione tramite chiave API. Fornisci il tuo token nell'header 'Authorization'. Esempio: Authorization: Bearer <TUO_TOKEN>

Path Parameters

authIntegrationId
string<uuid>
required

L'identificatore univoco per l'integrazione di autenticazione.

Example:

"c4d5e6f7-8a9b-0c1d-2e3f-4a5b6c7d8e9f"

Body

application/json
name
string
required

Un nome leggibile per l'integrazione.

Example:

"Azure AD - Aziendale"

type
enum<string>
required

Il tipo di provider di identità.

Opzioni disponibili:
azure,
github,
google
Example:

"azure"

config
object
required

Le credenziali di configurazione per il provider.

Response

L'integrazione di autenticazione è stata aggiornata con successo.

id
string<uuid>

L'identificatore univoco per l'integrazione di autenticazione.

Example:

"c4d5e6f7-8a9b-0c1d-2e3f-4a5b6c7d8e9f"

name
string

Un nome leggibile per l'integrazione.

Example:

"Azure AD - Aziendale"

type
enum<string>

Il tipo di provider di identità.

Opzioni disponibili:
azure,
github,
google
Example:

"azure"

config
object

Le credenziali di configurazione per il provider. Il client_secret è di sola scrittura e non verrà restituito nelle risposte API.

test_url
string<uri>

Un URL firmato che può essere utilizzato per testare il flusso di autenticazione per questa integrazione.

Example:

"https://captive.altostr.at/auth-test/c4d5e6f7...?signature=..."

created_at
string<date-time>

Il timestamp di creazione dell'integrazione.

Example:

"2025-10-28T10:00:00Z"