Authorisation Delegation type extension (VCDM 2.0)
npm install @cef-ebsi/vcdm2.0-type-extensions-evidence-authorisation-delegation-schema> EBSI Type Extension for use of AuthorisationDelegation
>
> Defines how to include a proof to issue a delegated authorisation
The schema is published to the Trusted Schemas Registry with the IDs:
- 0x54ab6af56d83782d52a151cdd59c53b50d593ca7382532985858648ec8350b89 (hexadecimal)
- z6hWrGM9V9qXii1cag7TFunTqfRen2nrLkhXrARf9iLjr (multibase base58btc)
- JSON Schema
- Installation
- Usage
- License
``json`
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "EBSI Type Extension for use of AuthorisationDelegation",
"description": "Defines how to include a proof to issue a delegated authorisation",
"type": "object",
"properties": {
"evidence": {
"anyOf": [
{
"$ref": "#/$defs/evidence"
},
{
"type": "array",
"description": "One item must match the type extension",
"contains": {
"$ref": "#/$defs/evidence"
}
}
]
}
},
"$defs": {
"evidence": {
"description": "Contains information about the process which resulted in the issuance of the credential",
"type": "object",
"properties": {
"id": {
"description": "CONDITIONAL. A unique id that identifies the evidence.MUST be used if more than one evidence is present",
"type": "string"
},
"type": {
"anyOf": [
{
"description": "Defines the evidence type extension",
"const": "AuthorisationDelegation"
},
{
"description": "Defines the evidence type extension",
"type": "array",
"contains": {
"const": "AuthorisationDelegation"
}
}
]
},
"delegation": {
"description": "Verifiable Credential based on which the delegated Verifiable Authorisation has been issued",
"oneOf": [
{
"description": "Compact serialised JWS",
"type": "string"
},
{
"description": "JSON serialised JWS",
"type": "object"
}
]
}
},
"required": ["type", "delegation"]
}
}
}
`shwith npm
npm add @cef-ebsi/vcdm2.0-type-extensions-evidence-authorisation-delegation-schema@2.0.0
Usage
The package exports the schema and its metadata as JavaScript objects:
`js
import {
schema,
metadata,
} from "@cef-ebsi/vcdm2.0-type-extensions-evidence-authorisation-delegation-schema";// you can now use the schema and metadata
`In addition, the package exports a TypeScript type corresponding to the schema:
`ts
import type { EBSITypeExtensionForUseOfAuthorisationDelegation } from "@cef-ebsi/vcdm2.0-type-extensions-evidence-authorisation-delegation-schema";
``Copyright (C) 2024 European Union
This program is free software: you can redistribute it and/or modify it under the terms of the EUROPEAN UNION PUBLIC LICENCE v. 1.2 as published by the European Union.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the EUROPEAN UNION PUBLIC LICENCE v. 1.2 for further details.
You should have received a copy of the EUROPEAN UNION PUBLIC LICENCE v. 1.2. along with this program. If not, see