Passer au contenu 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>"
}

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

id
string
requis

L’id de la connexion pour créer son jeton SCIM

Corps

Jeton SCIM

scopes
string[]

Les scopes du jeton SCIM

Minimum array length: 1

Le scope du jeton

token_lifetime
integer | null

Durée de validité du jeton en secondes. Doit être supérieure à 900

Réponse

Le jeton SCIM de la connexion a été créé. Consultez les schémas de réponse pour le schéma correspondant.

created_at
string

L’horodatage de création du jeton

scopes
string[]

Les scopes du jeton SCIM

Le scope du jeton

token
string

Le jeton de l’application SCIM

token_id
string

L’identifiant du jeton

valid_until
string

L’horodatage de fin de validité du jeton