C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.VerifiableCredentials.Verification.Templates.GetAsync(
"id"
);
}
}package example
import (
context "context"
client "github.com/auth0/go-auth0/v3/management/client"
option "github.com/auth0/go-auth0/v3/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
mgmt.VerifiableCredentials.Verification.Templates.Get(
context.TODO(),
"id",
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.verifiableCredentials().verification().templates().get("id");
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->verifiableCredentials->verification->templates->get(
'id',
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.verifiable_credentials.verification.templates.get(
id="id",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.verifiable_credentials.verification.templates.get(id: "id")
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.verifiableCredentials.verification.templates.get("id");
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.verifiableCredentials.verification.templates.get("id");
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/verifiable-credentials/verification/templates/{id} \
--header 'Authorization: Bearer <token>'{
"created_at": "2021-01-01T00:00:00Z",
"custom_certificate_authority": "<string>",
"dialect": "simplified/1.0",
"id": "vct_0000000000000001",
"name": "<string>",
"presentation": {
"org.iso.18013.5.1.mDL": {
"org.iso.18013.5.1": {
"age_birth_year": true,
"age_in_years": true,
"birth_date": true,
"driving_privileges": true,
"expiry_date": true,
"family_name": true,
"family_name_national_character": true,
"given_name": true,
"given_name_national_character": true,
"issue_date": true,
"issuing_authority": true,
"issuing_country": true,
"issuing_jurisdiction": true,
"nationality": true,
"portrait": true,
"portrait_capture_date": true,
"resident_address": true,
"resident_city": true,
"resident_country": true,
"resident_postal_code": true,
"resident_state": true
}
}
},
"type": "mdl",
"updated_at": "2021-01-01T00:00:00Z",
"well_known_trusted_issuers": "<string>"
}Obtenir des modèles VC par ID
deprecated
Récupérer un modèle d’attestation vérifiable.
GET
https://{tenantDomain}/api/v2
/
verifiable-credentials
/
verification
/
templates
/
{id}
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.VerifiableCredentials.Verification.Templates.GetAsync(
"id"
);
}
}package example
import (
context "context"
client "github.com/auth0/go-auth0/v3/management/client"
option "github.com/auth0/go-auth0/v3/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
mgmt.VerifiableCredentials.Verification.Templates.Get(
context.TODO(),
"id",
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.verifiableCredentials().verification().templates().get("id");
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->verifiableCredentials->verification->templates->get(
'id',
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.verifiable_credentials.verification.templates.get(
id="id",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.verifiable_credentials.verification.templates.get(id: "id")
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.verifiableCredentials.verification.templates.get("id");
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.verifiableCredentials.verification.templates.get("id");
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/verifiable-credentials/verification/templates/{id} \
--header 'Authorization: Bearer <token>'{
"created_at": "2021-01-01T00:00:00Z",
"custom_certificate_authority": "<string>",
"dialect": "simplified/1.0",
"id": "vct_0000000000000001",
"name": "<string>",
"presentation": {
"org.iso.18013.5.1.mDL": {
"org.iso.18013.5.1": {
"age_birth_year": true,
"age_in_years": true,
"birth_date": true,
"driving_privileges": true,
"expiry_date": true,
"family_name": true,
"family_name_national_character": true,
"given_name": true,
"given_name_national_character": true,
"issue_date": true,
"issuing_authority": true,
"issuing_country": true,
"issuing_jurisdiction": true,
"nationality": true,
"portrait": true,
"portrait_capture_date": true,
"resident_address": true,
"resident_city": true,
"resident_country": true,
"resident_postal_code": true,
"resident_state": true
}
}
},
"type": "mdl",
"updated_at": "2021-01-01T00:00:00Z",
"well_known_trusted_issuers": "<string>"
}Autorisations
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Paramètres de chemin
ID du modèle à récupérer.
Maximum string length:
26Réponse
Modèle récupéré avec succès.
La date et l’heure de création du modèle.
L’autorité de certification personnalisée.
Required string length:
1 - 4096Le dialecte du modèle.
Maximum string length:
255L’ID du modèle.
Le nom du modèle.
Une requête de présentation simplifiée
Show child attributes
Show child attributes
Le type de modèle.
La date et l’heure de création du modèle.
Les issuer de confiance well-known, séparés par des virgules.
Required string length:
1 - 255⌘I