-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from niscy-eudiw/feature/EUDIW-767
EUDIW-767: verifier-ui option for VP in CBOR format
- Loading branch information
Showing
9 changed files
with
307 additions
and
3 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
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,210 @@ | ||
export const PID_PRESENTATION_DEFINITION = { | ||
'type': 'vp_token', | ||
'presentation_definition': { | ||
'id': '32f54163-7166-48f1-93d8-ff217bdb0653', | ||
'input_descriptors': [ | ||
{ | ||
'id': 'eudi_pid', | ||
'name': 'EUDI PID', | ||
'purpose': 'We need to verify your identity', | ||
'constraints': { | ||
'fields': [ | ||
{ | ||
'path': [ | ||
'$.mdoc.doctype' | ||
], | ||
'filter': { | ||
'type': 'string', | ||
'const': 'eu.europa.ec.eudiw.pid.1' | ||
} | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.namespace' | ||
], | ||
'filter': { | ||
'type': 'string', | ||
'const': 'eu.europa.ec.eudiw.pid.1' | ||
} | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.family_name' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.given_name' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.birth_date' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.age_over_18' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.age_in_years' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.age_birth_year' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.unique_id' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.family_name_birth' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.given_name_birth' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.birth_place' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.birth_country' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.birth_state' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.birth_city' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.resident_address' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.resident_country' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.resident_state' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.resident_city' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.resident_postal_code' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.resident_street' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.resident_house_number' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.gender' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.nationality' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.issuance_date' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.expiry_date' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.issuing_authority' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.document_number' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.administrative_number' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.issuing_country' | ||
], | ||
'intent_to_retain': false | ||
}, | ||
{ | ||
'path': [ | ||
'$.mdoc.issuing_jurisdiction' | ||
], | ||
'intent_to_retain': false | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
'nonce' : 'nonce' | ||
}; |
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
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,22 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule, Routes } from '@angular/router'; | ||
import { HomeComponent } from './home/home.component'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: '', | ||
component: HomeComponent, | ||
children: [ | ||
{ | ||
path: '', | ||
loadComponent: () => import('../verifiable-credential/components/qr-code/qr-code.component').then(c => c.QrCodeComponent) | ||
} | ||
] | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class CborRoutingModule { } |
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,19 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
|
||
import { CborRoutingModule } from './cbor-routing.module'; | ||
import { HomeComponent } from './home/home.component'; | ||
import { LayoutComponent } from '@app/core/layout/layout/layout.component'; | ||
|
||
|
||
@NgModule({ | ||
declarations: [ | ||
HomeComponent | ||
], | ||
imports: [ | ||
CommonModule, | ||
LayoutComponent, | ||
CborRoutingModule | ||
] | ||
}) | ||
export class CborModule { } |
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,4 @@ | ||
<vc-layout> | ||
<h2 title>OID4VP + CBOR</h2> | ||
<router-outlet body></router-outlet> | ||
</vc-layout> |
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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { HomeComponent } from './home.component'; | ||
|
||
describe('HomeComponent', () => { | ||
let component: HomeComponent; | ||
let fixture: ComponentFixture<HomeComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ HomeComponent ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(HomeComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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,9 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'vc-home', | ||
templateUrl: './home.component.html' | ||
}) | ||
export class HomeComponent { | ||
|
||
} |
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