Saltar al contenido principal
POST
https://{tenantDomain}/api/v2
/
connections
/
{id}
/
scim-configuration
/
tokens
Go
package example

import (
    context "context"

    client "github.com/auth0/go-auth0/management/management/client"
    scimconfiguration "github.com/auth0/go-auth0/management/management/connections/scimconfiguration"
    option "github.com/auth0/go-auth0/management/management/option"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    request := &scimconfiguration.CreateScimTokenRequestContent{}
    client.Connections.ScimConfiguration.Tokens.Create(
        context.TODO(),
        "id",
        request,
    )
}
{
  "created_at": "<string>",
  "scopes": [
    "<string>"
  ],
  "token": "<string>",
  "token_id": "<string>",
  "valid_until": "<string>"
}

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parámetros de ruta

id
string
requerido

El id de la conexión para crear su token SCIM

Cuerpo

Token de SCIM

scopes
string[]

Los alcances del token de SCIM

Minimum array length: 1

El scope del token

token_lifetime
integer | null

Duración del token en segundos. Debe ser superior a 900

Respuesta

Se creó el token SCIM de la conexión. Consulte Esquemas de respuesta para ver el esquema.

created_at
string

La marca de tiempo de creación del token

scopes
string[]

Los alcances del token de SCIM

El scope del token

token
string

El token del cliente de SCIM

token_id
string

El identificador del token

valid_until
string

La marca de tiempo hasta la que el token es válido