Passer au contenu principal
GET
https://{tenantDomain}/api/v2
/
clients
/
{client_id}
/
credentials
Go
package example

import (
    context "context"

    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Clients.Credentials.List(
        context.TODO(),
        "client_id",
    )
}
[
  {
    "alg": "RS256",
    "created_at": "2023-11-07T05:31:56Z",
    "expires_at": "2023-11-07T05:31:56Z",
    "id": "cred_1m7sfABoNTTKYwTQ8qt6tX",
    "kid": "IZSSTECp...",
    "name": "",
    "subject_dn": "<string>",
    "thumbprint_sha256": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  }
]

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

client_id
string
requis

ID du client.

Réponse

Informations d’identification récupérées avec succès.

alg
enum<string>
défaut:RS256

Algorithme qui sera utilisé avec l’information d’identification. Algorithmes pris en charge : RS256,RS384,PS256

Options disponibles:
RS256,
RS384,
PS256
created_at
string<date-time>

La date de création de l’information d’identification, au format ISO 8601.

credential_type
enum<string>

Le type d’information d’identification.

Options disponibles:
public_key,
cert_subject_dn,
x509_cert
expires_at
string<date-time>

La date au format ISO 8601 correspondant à l’expiration de l’information d’identification.

id
string
défaut:cred_1m7sfABoNTTKYwTQ8qt6tX

ID de l’information d’identification. Généré lors de la création.

kid
string
défaut:IZSSTECp...

L’identifiant de clé de l’information d’identification, généré lors de la création.

name
string
défaut:""

Le nom attribué à l’information d’identification par l’utilisateur.

subject_dn
string

Le nom distinctif du sujet du certificat X509

thumbprint_sha256
string

L’empreinte SHA256 du certificat X509

updated_at
string<date-time>

La date de mise à jour de l’information d’identification, au format ISO 8601.