Skip to content

Commit

Permalink
v0.8.33 - fix jwt sign API and identification submission test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelavoyan committed May 23, 2024
1 parent b8caa04 commit 63db19e
Show file tree
Hide file tree
Showing 13 changed files with 186 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/sample-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@fastify/autoload": "~5.7.1",
"env-var": "~7.3.0",
"fastify": "~4.15.0",
"@velocitycareerlabs/vnf-nodejs-wallet-sdk": "^0.8.32"
"@velocitycareerlabs/vnf-nodejs-wallet-sdk": "^0.8.33"
},
"devDependencies": {
"@jest/globals": "~29.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@velocitycareerlabs/vnf-nodejs-wallet-sdk",
"version": "0.8.32",
"version": "0.8.33",
"description": "VNF Wallet SDK Nodejs",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/sdk/src/api/VCL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import VCLToken from "./entities/VCLToken";
import VCLVerifiedProfile from "./entities/VCLVerifiedProfile";
import VCLVerifiedProfileDescriptor from "./entities/VCLVerifiedProfileDescriptor";
import { Nullish } from "./VCLTypes";
import VCLResult from "./entities/VCLResult";

export default interface VCL {
initialize(
Expand Down Expand Up @@ -83,8 +84,8 @@ export default interface VCL {

generateSignedJwt(
jwtDescriptor: VCLJwtDescriptor,
nonce: Nullish<string>,
didJwk: VCLDidJwk,
nonce: Nullish<string>,
remoteCryptoServicesToken: Nullish<VCLToken>
): Promise<VCLJwt>;
}
4 changes: 2 additions & 2 deletions packages/sdk/src/impl/VCLImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,14 +485,14 @@ export class VCLImpl implements VCL {

generateSignedJwt = async (
jwtDescriptor: VCLJwtDescriptor,
nonce: Nullish<string>,
didJwk: VCLDidJwk,
nonce: Nullish<string>,
remoteCryptoServicesToken: Nullish<VCLToken>
) => {
const jwtResult = await this.jwtServiceUseCase.generateSignedJwt(
jwtDescriptor,
nonce,
didJwk,
nonce,
remoteCryptoServicesToken
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export default class JwtServiceRepositoryImpl implements JwtServiceRepository {
}
async generateSignedJwt(
jwtDescriptor: VCLJwtDescriptor,
nonce: Nullish<string>,
didJwk: VCLDidJwk,
nonce: Nullish<string>,
remoteCryptoServicesToken: Nullish<VCLToken>
): Promise<VCLResult<VCLJwt>> {
try {
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/src/impl/data/usecases/JwtServiceUseCaseImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ export default class JwtServiceUseCaseImpl implements JwtServiceUseCase {
}
generateSignedJwt(
jwtDescriptor: VCLJwtDescriptor,
nonce: Nullish<string>,
didJwk: VCLDidJwk,
nonce: Nullish<string>,
remoteCryptoServicesToken: Nullish<VCLToken>
) {
return this.jwtServiceRepository.generateSignedJwt(jwtDescriptor, nonce, didJwk, remoteCryptoServicesToken);
): Promise<VCLResult<VCLJwt>> {
return this.jwtServiceRepository.generateSignedJwt(jwtDescriptor, didJwk, nonce, remoteCryptoServicesToken);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export default class SubmissionUseCaseImpl implements SubmissionUseCase {
submission.jti,
submission.didJwk?.keyId
),
null,
submission.didJwk,
null,
submission.remoteCryptoServicesToken
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export default interface JwtServiceRepository {

generateSignedJwt(
jwtDescriptor: VCLJwtDescriptor,
didJwk: VCLDidJwk,
nonce: Nullish<string>,
didJwk: Nullish<VCLDidJwk>,
remoteCryptoServicesToken: Nullish<VCLToken>
remoteCryptoServicesToken: Nullish<VCLToken>
): Promise<VCLResult<VCLJwt>>;
}
2 changes: 1 addition & 1 deletion packages/sdk/src/impl/domain/usecases/JwtServiceUseCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default interface JwtServiceUseCase {

generateSignedJwt(
jwtDescriptor: VCLJwtDescriptor,
nonce: Nullish<string>,
didJwk: VCLDidJwk,
nonce: Nullish<string>,
remoteCryptoServicesToken: Nullish<VCLToken>
): Promise<VCLResult<VCLJwt>>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ import VCLJwtDescriptor from "../../../../src/api/entities/VCLJwtDescriptor";
import VCLDidJwk from "../../../../src/api/entities/VCLDidJwk";
import VCLResult from "../../../../src/api/entities/VCLResult";
import VCLJwt from "../../../../src/api/entities/VCLJwt";
import VCLToken from "../../../../src/api/entities/VCLToken";

export class JwtSignServiceMock implements VCLJwtSignService {
constructor(readonly successValue: Nullish<string> = null) {
}
sign(
jwtDescriptor: VCLJwtDescriptor,
didJwk: VCLDidJwk,
nonce: Nullish<string>
nonce: Nullish<string>,
remoteCryptoServicesToken: Nullish<VCLToken>
): Promise<VCLResult<VCLJwt>> {
return Promise.resolve(new VCLResult.Success(VCLJwt.fromEncodedJwt(this.successValue || '')));
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import VCLPushDelegate from "../../../../src/api/entities/VCLPushDelegate";
import {
VCLCredentialManifest,
VCLDeepLink,
VCLDidJwk,
VCLJwt,
VCLToken,
VCLVerifiableCredential,
VCLVerifiedProfile
} from "../../../../src";
import { DidJwkMocks } from "./DidJwkMocks";

export class IdentificationSubmissionMocks {
static DidJwkJson =
{"did":"did:jwk:eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IkFYQWxaWThqNGh5cm10dzBoRjNrLTJWT080THZXRzBLNEF5a0JYS25HVWciLCJ5IjoiYzlEVHE5cVRWUTlRQmlsLUgxdGRWN3FZZERic3BhTG5wZ0FJdkRKeEpHayJ9","kid":"did:jwk:eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6IkFYQWxaWThqNGh5cm10dzBoRjNrLTJWT080THZXRzBLNEF5a0JYS25HVWciLCJ5IjoiYzlEVHE5cVRWUTlRQmlsLUgxdGRWN3FZZERic3BhTG5wZ0FJdkRKeEpHayJ9#0","keyId":"Iv5pwCQfp6e5FsncVgVX0","publicJwk":{"kty":"EC","crv":"P-256","y":"c9DTq9qTVQ9QBil-H1tdV7qYdDbspaLnpgAIvDJxJGk","x":"AXAlZY8j4hyrmtw0hF3k-2VOO4LvWG0K4AykBXKnGUg"}}
static DidJwk = VCLDidJwk.fromJSON(IdentificationSubmissionMocks.DidJwkJson)

static PushDelegate = new VCLPushDelegate(
"https://devservices.velocitycareerlabs.io/api/push-gateway",
"if0123asd129smw321"
);

static VerifiableProfileJson = {"id":"928363a2-bce4-4b54-9350-d0d906518da4","type":["OrganizationBasicProfile-v1.0","VerifiableCredential"],"issuer":{"id":"did:velocity:0x7c98a6cea317ec176ba865a42d3eae639dfe9fb1"},"credentialSubject":{"name":"University of Massachusetts Amherst","location":{"countryCode":"US","regionCode":"MA"},"contactEmail":"[email protected]","technicalEmail":"[email protected]","description":"Test org, primarily for Issuing Education and Cource credentials","founded":"2023-04-04","type":"company","physicalAddress":{"line1":"xxxx","line2":"xxxx","line3":"xxxx","regionCode":"XX-XX","countryCode":"XX","postcode":"xxxx"},"id":"did:ion:EiApMLdMb4NPb8sae9-hXGHP79W1gisApVSE80USPEbtJA","permittedVelocityServiceCategory":["Issuer","Inspector"],"createdAt":"2022-03-01T10:17:38.542Z","updatedAt":"2023-06-26T13:36:05.180Z","supportsSecureMessages":false},"issued":"2024-02-13T11:54:41.000Z","credentialChecks":{"checked":"2024-05-23T08:42:01.063Z","TRUSTED_ISSUER":"PASS","UNREVOKED":"NOT_CHECKED","UNEXPIRED":"NOT_APPLICABLE","UNTAMPERED":"PASS"}}
static VerifiedProfile = new VCLVerifiedProfile(IdentificationSubmissionMocks.VerifiableProfileJson)

static DeepLinkStr =
"velocity-network-devnet://issue?request_uri=https%3A%2F%2Fdevagent.velocitycareerlabs.io%2Fapi%2Fholder%2Fv0.6%2Forg%2Fdid%3Aion%3AEiApMLdMb4NPb8sae9-hXGHP79W1gisApVSE80USPEbtJA%2Fissue%2Fget-credential-manifest%3Fid%3D6384a3ad148b1991687f67c9%26credential_types%3DEmploymentPastV1.1%26issuerDid%3Ddid%3Aion%3AEiApMLdMb4NPb8sae9-hXGHP79W1gisApVSE80USPEbtJA"
static DeepLink = new VCLDeepLink(IdentificationSubmissionMocks.DeepLinkStr)

static CredentialManifestJwtStr =
'eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksiLCJraWQiOiJkaWQ6aW9uOkVpQXBNTGRNYjROUGI4c2FlOS1oWEdIUDc5VzFnaXNBcFZTRTgwVVNQRWJ0SkEjZXhjaGFuZ2Uta2V5LTEifQ.eyJleGNoYW5nZV9pZCI6IjY2NGVmZjg5OTQ4MTMxMzQ2Y2EzYzc1NyIsIm1ldGFkYXRhIjp7ImNsaWVudF9uYW1lIjoiVW5pdmVyc2l0eSBvZiBNYXNzYWNodXNldHRzIEFtaGVyc3QiLCJsb2dvX3VyaSI6Imh0dHBzOi8vdXBsb2FkLndpa2ltZWRpYS5vcmcvd2lraXBlZGlhL2NvbW1vbnMvNC80Zi9VTWFzc19TZWFsX01lZGl1bV9QTVNfMjAyLnBuZyIsInRvc191cmkiOiJodHRwczovL3d3dy52ZWxvY2l0eWV4cGVyaWVuY2VjZW50ZXIuY29tL3Rlcm1zLWFuZC1jb25kaXRpb25zLXZuZiIsIm1heF9yZXRlbnRpb25fcGVyaW9kIjoiNm0iLCJwcm9ncmVzc191cmkiOiJodHRwczovL2RldmFnZW50LnZlbG9jaXR5Y2FyZWVybGFicy5pby9hcGkvaG9sZGVyL3YwLjYvb3JnL2RpZDppb246RWlBcE1MZE1iNE5QYjhzYWU5LWhYR0hQNzlXMWdpc0FwVlNFODBVU1BFYnRKQS9nZXQtZXhja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WEiOnsidHlwZSI6InN0cmluZyJ9fSx7ImxhYmVsIjoiTWlkZGxlIG5hbWUiLCJwYXRoIjpbIiQucmVjaXBpZW50Lm1pZGRsZU5hbWUiXSwic2NoZW1hIjp7InR5cGUiOiJzdHJpbmcifX0seyJsYWJlbCI6Ikxhc3QgbmFtZSIsInBhdGgiOlsiJC5yZWNpcGllbnQuZmFtaWx5TmFtZSJdLCJzY2hlbWEiOnsidHlwZSI6InN0cmluZyJ9fSx7ImxhYmVsIjoiTmFtZSBwcmVmaXgiLCJwYXRoIjpbIiQucmVjaXBpZW50Lm5hbWVQcmVmaXgiXSwic2NoZW1hIjp7InR5cGUiOiJzdHJpbmcifX0seyJsYWJlbCI6Ik5hbWUgc3VmZml4IiwicGF0aCI6WyIkLnJlY2lwaWVudC5uYW1lU3VmZml4Il0sInNjaGVtYSI6eyJ0eXBlIjoic3RyaW5nIn19LHsibGFiZWwiOiJMZWFybiBtb3JlIGFib3V0IHRoZSBjcmVkZW50aWFsIiwicGF0aCI6WyIkLmFsaWdubWVudFswXS50YXJnZXRVcmwiXSwic2NoZW1hIjp7InR5cGUiOiJzdHJpbmciLCJmb3JtYXQiOiJ1cmkifX1dfX1dLCJpc3N1ZXIiOnsiaWQiOiJkaWQ6aW9uOkVpQXBNTGRNYjROUGI4c2FlOS1oWEdIUDc5VzFnaXNBcFZTRTgwVVNQRWJ0SkEifSwibmJmIjoxNzE2NDUzMjU5LCJpc3MiOiJkaWQ6aW9uOkVpQXBNTGRNYjROUGI4c2FlOS1oWEdIUDc5VzFnaXNBcFZTRTgwVVNQRWJ0SkEiLCJleHAiOjE3MTcwNTgwNTksImlhdCI6MTcxNjQ1MzI1OX0'
static CredentialManifestJwt = VCLJwt.fromEncodedJwt(IdentificationSubmissionMocks.CredentialManifestJwtStr)

static RemoteCryptoServicesTokenStr = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c'
static RemoteCryptoServicesToken = new VCLToken(IdentificationSubmissionMocks.RemoteCryptoServicesTokenStr)

static CredentialManifest = new VCLCredentialManifest(
IdentificationSubmissionMocks.CredentialManifestJwt,
null,
IdentificationSubmissionMocks.VerifiedProfile,
IdentificationSubmissionMocks.DeepLink,
IdentificationSubmissionMocks.DidJwk,
IdentificationSubmissionMocks.RemoteCryptoServicesToken
)
static AdamSmithDriversLicenseJwt =
"eyJ0eXAiOiJKV1QiLCJraWQiOiJkaWQ6dmVsb2NpdHk6djI6MHg2MjU2YjE4OTIxZWFiZDM5MzUxZWMyM2YxYzk0Zjg4MDYwNGU3MGU3OjIxMTQ4ODcxODM1NTAwODo2NzYyI2tleS0xIiwiYWxnIjoiRVMyNTZLIn0.eyJ2YyI6eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvMjAxOC9jcmVkZW50aWFscy92MSJdLCJ0eXBlIjpbIkRyaXZlcnNMaWNlbnNlVjEuMCIsIlZlcmlmaWFibGVDcmVkZW50aWFsIl0sImNyZWRlbnRpYWxTdGF0dXMiOnsidHlwZSI6IlZlbG9jaXR5UmV2b2NhdGlvbkxpc3RKYW4yMDIxIiwiaWQiOiJldGhlcmV1bToweEQ4OTBGMkQ2MEI0MjlmOWUyNTdGQzBCYzU4RWYyMjM3Nzc2REQ5MUIvZ2V0UmV2b2tlZFN0YXR1cz9hZGRyZXNzPTB4MDMwMThFM2EzODk3MzRhRTEyZjE0RTQ0NTQwZkFlYTM1NzkxZkVDNyZsaXN0SWQ9MTYzNTc4ODY2Mjk2NjUzJmluZGV4PTIxMDMiLCJzdGF0dXNMaXN0SW5kZXgiOjIxMDMsInN0YXR1c0xpc3RDcmVkZW50aWFsIjoiZXRoZXJldW06MHhEODkwRjJENjBCNDI5ZjllMjU3RkMwQmM1OEVmMjIzNzc3NkREOTFCL2dldFJldm9rZ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Zz09In0sImNvbnRlbnRIYXNoIjp7InR5cGUiOiJWZWxvY2l0eUNvbnRlbnRIYXNoMjAyMCIsInZhbHVlIjoiODlkNGRjYzg2ZDU0MGM2ZWVhMzlkMTc4ZWVkYzMwMjEzZTc4MmYyNTFlMDNiNzZmNDI3MzEwNjgwOGRkMGQ0ZiJ9LCJjcmVkZW50aWFsU2NoZW1hIjp7ImlkIjoiaHR0cHM6Ly9kZXZyZWdpc3RyYXIudmVsb2NpdHluZXR3b3JrLmZvdW5kYXRpb24vc2NoZW1hcy9lbWFpbC12MS4wLnNjaGVtYS5qc29uIiwidHlwZSI6Ikpzb25TY2hlbWFWYWxpZGF0b3IyMDE4In0sImNyZWRlbnRpYWxTdWJqZWN0Ijp7ImVtYWlsIjoiYWRhbS5zbWl0aEBleGFtcGxlLmNvbSJ9fSwiaXNzIjoiZGlkOmlvbjpFaUFlaFdtcFg1bUhCdWM5M1NJaFBYRjhic0V4NjhHNm1QY2RJYUxOR2JvelBBIiwianRpIjoiZGlkOnZlbG9jaXR5OnYyOjB4NjI1NmIxODkyMWVhYmQzOTM1MWVjMjNmMWM5NGY4ODA2MDRlNzBlNzoyMTE0ODg3MTgzNTUwMDg6NDE2NiIsImlhdCI6MTY1Mjg5Njg2OSwibmJmIjoxNjUyODk2ODY5fQ.fi0qJFzHiDEWTGUu0ME1aG36-j2jm7xxA2DWPs_Ra7ftl-ALMu0FY3A38klbkJQYCaXWHFH0hBbcQ5Z3uZCeew"
static IdentificationList = [
new VCLVerifiableCredential("PhoneV1.0", IdentificationSubmissionMocks.AdamSmithPhoneJwt),
new VCLVerifiableCredential("EmailV1.0", IdentificationSubmissionMocks.AdamSmithEmailJwt),
new VCLVerifiableCredential("DriversLicenseV1.0", IdentificationSubmissionMocks.AdamSmithDriversLicenseJwt),
]
}
Loading

0 comments on commit 63db19e

Please sign in to comment.