メインコンテンツへスキップ
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>"
}

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

SCIM トークンを作成する接続の id

ボディ

SCIM トークン

scopes
string[]

SCIM トークンのスコープ

Minimum array length: 1

トークンのスコープ

token_lifetime
integer | null

トークンの有効期間(秒)。900 より大きい必要があります

レスポンス

接続の SCIM トークンが作成されました。スキーマについては Response Schemas を参照してください。

created_at
string

トークンの作成日時を示すタイムスタンプ

scopes
string[]

SCIM トークンのスコープ

トークンのスコープ

token
string

SCIM クライアントのトークン

token_id
string

トークンの識別子

valid_until
string

トークンの有効期限を示すタイムスタンプ