package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
keys "github.com/auth0/go-auth0/management/management/keys"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &keys.SetCustomSigningKeysRequestContent{
Keys: []*management.CustomSigningKeyJwk{
&management.CustomSigningKeyJwk{
Kty: management.CustomSigningKeyTypeEnumEc,
},
},
}
client.Keys.CustomSigning.Set(
context.TODO(),
request,
)
}{
"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>"
}
]
}Create or replace entire jwks representation of custom signing keys.
package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
keys "github.com/auth0/go-auth0/management/management/keys"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &keys.SetCustomSigningKeysRequestContent{
Keys: []*management.CustomSigningKeyJwk{
&management.CustomSigningKeyJwk{
Kty: management.CustomSigningKeyTypeEnumEc,
},
},
}
client.Keys.CustomSigning.Set(
context.TODO(),
request,
)
}{
"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>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://auth0-feat-testing-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
JWKS representing an array of custom public signing keys.
An array of custom public signing keys.
1Show child attributes
Custom signing keys were successfully created or replaced.
JWKS representing an array of custom public signing keys.
An array of custom public signing keys.
Show child attributes
このページは役に立ちましたか?