Skip to content

Commit

Permalink
MYC-184 uncommitted changes are added
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetbicak committed Jul 12, 2022
1 parent a3c789c commit 5013976
Show file tree
Hide file tree
Showing 2 changed files with 7,567 additions and 0 deletions.
227 changes: 227 additions & 0 deletions packages/ms-request-api/plugin.schema.json
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"
}
}
}
}
}
}
Loading

0 comments on commit 5013976

Please sign in to comment.