Passer au contenu principal
POST
https://{tenantDomain}/api/v2
/
connections
/
{id}
/
scim-configuration
/
tokens
Go
package example

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

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

The id of the connection to create its SCIM token

Corps

SCIM Token

scopes
string[]

The scopes of the scim token

Minimum array length: 1

The token's scope

token_lifetime
integer | null

Lifetime of the token in seconds. Must be greater than 900

Réponse

The connection's SCIM token was created. See Response Schemas for schema.

token_id
string

The token's identifier

token
string

The scim client's token

scopes
string[]

The scopes of the scim token

The token's scope

created_at
string

The token's created at timestamp

valid_until
string

The token's valid until at timestamp