メインコンテンツへスキップ
PUT
https://{tenantDomain}/api/v2
/
keys
/
custom-signing
Go
package example

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

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Keys.CustomSigning.Set(
        context.TODO(),
        &keys.SetCustomSigningKeysRequestContent{
            Keys: []*management.CustomSigningKeyJwk{
                &management.CustomSigningKeyJwk{
                    Kty: management.CustomSigningKeyTypeEnumEc,
                },
            },
        },
    )
}
{
  "keys": [
    {
      "kty": "EC",
      "kid": "<string>",
      "use": "sig",
      "key_ops": [
        "verify"
      ],
      "alg": "RS256",
      "n": "<string>",
      "e": "<string>",
      "crv": "P-256",
      "x": "<string>",
      "y": "<string>",
      "x5u": "<string>",
      "x5c": [
        "<string>"
      ],
      "x5t": "<string>",
      "x5t#S256": "<string>"
    }
  ]
}

承認

Authorization
string
header
必須

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

ボディ

JWKS representing an array of custom public signing keys.

keys
object[]
必須

An array of custom public signing keys.

Minimum array length: 1

レスポンス

Custom signing keys were successfully created or replaced.

JWKS representing an array of custom public signing keys.

keys
object[]

An array of custom public signing keys.