-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MYC-184 uncommitted changes are added
- Loading branch information
1 parent
a3c789c
commit 5013976
Showing
2 changed files
with
7,567 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,227 @@ | ||
{ | ||
"IMsRequestApi": { | ||
"components": { | ||
"schemas": { | ||
"IClientIssueRequest": { | ||
"type": "object", | ||
"properties": { | ||
"authenticationInfo": { | ||
"$ref": "#/components/schemas/IMsAuthenticationClientCredentialArgs" | ||
}, | ||
"clientIssuanceConfig": { | ||
"$ref": "#/components/schemas/IClientIssuanceConfig" | ||
}, | ||
"claims": { | ||
"$ref": "#/components/schemas/CredentialSubject" | ||
} | ||
}, | ||
"required": [ | ||
"authenticationInfo", | ||
"clientIssuanceConfig", | ||
"claims" | ||
] | ||
}, | ||
"IMsAuthenticationClientCredentialArgs": { | ||
"type": "object", | ||
"properties": { | ||
"azClientId": { | ||
"type": "string" | ||
}, | ||
"azTenantId": { | ||
"type": "string" | ||
}, | ||
"azClientSecret": { | ||
"type": "string" | ||
}, | ||
"credentialManifestUrl": { | ||
"type": "string" | ||
}, | ||
"authority": { | ||
"type": "string" | ||
}, | ||
"region": { | ||
"type": "string" | ||
}, | ||
"scopes": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"skipCache": { | ||
"type": "boolean" | ||
}, | ||
"piiLoggingEnabled": { | ||
"type": "boolean" | ||
}, | ||
"logLevel": { | ||
"$ref": "#/components/schemas/LogLevel" | ||
} | ||
}, | ||
"required": [ | ||
"azClientId", | ||
"azTenantId", | ||
"azClientSecret", | ||
"credentialManifestUrl" | ||
], | ||
"description": "azClientId: clientId of the application you're trying to login azClientSecret: secret of the application you're trying to login azTenantId: your MS Azure tenantId credentialManifestUrl: url of your credential manifest. usually in following format: https://beta.eu.did.msidentity.com/v1.0/<tenant_id>/verifiableCredential/contracts/<verifiable_credential_schema> authority: optional. if not provided, we'll use the azClientId to create the Tenanted format if provided should be one of these two formats: - Tenanted: https://login.microsoftonline.com/{tenant}/, where {tenant} is either the GUID representing the tenant ID or a domain name associated with the tenant. - Work and school accounts: https://login.microsoftonline.com/organizations/. region?: if present will use the provided, if not will make a request to determine the region scopes?: scopes that you want to access via this authentication skipCache?: whether to skip cache piiLoggingEnabled?: if not provided defaults to false logLevel?: can be one of these values: Error = 0, Warning = 1, Info = 2, Verbose = 3, Trace = 4 if not provided defaults to LogLevel.Verbose" | ||
}, | ||
"LogLevel": { | ||
"type": "number", | ||
"enum": [ | ||
0, | ||
1, | ||
2, | ||
3, | ||
4 | ||
], | ||
"description": "Log message level." | ||
}, | ||
"IClientIssuanceConfig": { | ||
"type": "object", | ||
"properties": { | ||
"authority": { | ||
"type": "string" | ||
}, | ||
"includeQRCode": { | ||
"type": "boolean" | ||
}, | ||
"registration": { | ||
"$ref": "#/components/schemas/Registration" | ||
}, | ||
"callback": { | ||
"$ref": "#/components/schemas/Callback" | ||
}, | ||
"issuance": { | ||
"$ref": "#/components/schemas/IClientIssuance" | ||
} | ||
}, | ||
"required": [ | ||
"authority", | ||
"includeQRCode", | ||
"registration", | ||
"callback", | ||
"issuance" | ||
] | ||
}, | ||
"Registration": { | ||
"type": "object", | ||
"properties": { | ||
"clientName": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"clientName" | ||
] | ||
}, | ||
"Callback": { | ||
"type": "object", | ||
"properties": { | ||
"url": { | ||
"type": "string" | ||
}, | ||
"state": { | ||
"type": "string" | ||
}, | ||
"headers": { | ||
"$ref": "#/components/schemas/Headers" | ||
} | ||
}, | ||
"required": [ | ||
"url", | ||
"state", | ||
"headers" | ||
] | ||
}, | ||
"Headers": { | ||
"type": "object", | ||
"properties": { | ||
"apiKey": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"apiKey" | ||
] | ||
}, | ||
"IClientIssuance": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string" | ||
}, | ||
"manifest": { | ||
"type": "string" | ||
}, | ||
"pin": { | ||
"$ref": "#/components/schemas/Pin" | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"manifest", | ||
"pin" | ||
] | ||
}, | ||
"Pin": { | ||
"type": "object", | ||
"properties": { | ||
"value": { | ||
"type": "string" | ||
}, | ||
"length": { | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ | ||
"value", | ||
"length" | ||
] | ||
}, | ||
"CredentialSubject": { | ||
"type": "object" | ||
}, | ||
"IIssueRequestResponse": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
}, | ||
"requestId": { | ||
"type": "string" | ||
}, | ||
"url": { | ||
"type": "string" | ||
}, | ||
"expiry": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"pin": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"requestId", | ||
"url", | ||
"expiry", | ||
"pin" | ||
] | ||
} | ||
}, | ||
"methods": { | ||
"issuanceRequestMsVc": { | ||
"description": "", | ||
"arguments": { | ||
"$ref": "#/components/schemas/IClientIssueRequest" | ||
}, | ||
"returnType": { | ||
"$ref": "#/components/schemas/IIssueRequestResponse" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.