-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
148 additions
and
64 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
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,26 @@ | ||
export type ClaimSignature = { | ||
[key: string]: string; | ||
} | ||
export const MDocClaims: ClaimSignature = { | ||
'Familienname': 'family_name', | ||
'Geburtsname': 'family_name_birth', | ||
'Geburtsdatum': 'birthdate', | ||
'Alter in Geburtsjahren': 'age_birth_year', | ||
'Alter in Jahren': 'age_in_years', | ||
'Über 12': 'age_equal_or_over.12', | ||
'Über 14': 'age_equal_or_over.14', | ||
'Über 16': 'age_equal_or_over.16', | ||
'Über 18': 'age_equal_or_over.18', | ||
'Über 21': 'age_equal_or_over.21', | ||
'Über 65': 'age_equal_or_over.65', | ||
'Geburtsort': 'birth_place', | ||
'Wohnland': 'resident_country', | ||
'Wohnstadt': 'resident_city', | ||
'Postleitzahl': 'resident_postal_code', | ||
'Wohnstraße': 'resident_street', | ||
'Nationalität': 'nationality', | ||
'Ausstellungsdatum': 'issuance_date', | ||
'Ablaufdatum': 'expiry_date', | ||
'Ausstellungsland': 'issuing_country', | ||
'Ausstellende Behörde': 'issuing_authority', | ||
}; |
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
import type {ClaimSignature} from "~/models/MDocClaims"; | ||
|
||
export const SdJwtClaims: ClaimSignature = { | ||
'VCT': 'vct', | ||
'Aussteller': 'iss', | ||
'Name': 'given_name', | ||
'Familienname': 'family_name', | ||
'Geburtsname': 'birth_family_name', | ||
'Geburtsdatum': 'birthdate', | ||
'Alter in Geburtsjahren': 'age_birth_year', | ||
'Alter in Jahren': 'age_in_years', | ||
'Über 12': 'age_equal_or_over.12', | ||
'Über 14': 'age_equal_or_over.14', | ||
'Über 16': 'age_equal_or_over.16', | ||
'Über 18': 'age_equal_or_over.18', | ||
'Über 21': 'age_equal_or_over.21', | ||
'Über 65': 'age_equal_or_over.65', | ||
'Geburtsort': 'place_of_birth.locality', | ||
'Wohnstadt': 'address.locality', | ||
'Postleitzahl': 'address.postal_code', | ||
'Wohnadresse': 'address.street_address', | ||
'Nationalität': 'nationalities', | ||
'Ausstellungsland': 'issuing_country', | ||
'Ausstellende Behörde': 'issuing_authority', | ||
}; |
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<template> | ||
<div> | ||
<PresentationForm v-if="!qrCodeData" @data-posted="handleDataPosted"/> | ||
<QrCode v-if="qrCodeData" :data="qrCodeData"/> | ||
<PresentationForm v-if="!qrCodeData" @data-posted="handleDataPosted"/> | ||
<QrCode v-if="qrCodeData" :qr-code-data="qrCodeData"/> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import QrCode from "~/components/QrCode.vue"; | ||
import PresentationForm from "~/components/PresentationForm.vue"; | ||
const qrCodeData = ref<{client_id: string, request_uri: string} | null>(null); | ||
const qrCodeData = ref<{ client_id: string, request_uri: string } | null>(null); | ||
const handleDataPosted = (client_id: string, request_uri: string) => { | ||
const handleDataPosted = ({client_id, request_uri}: {client_id: string, request_uri: string}) => { | ||
qrCodeData.value = {client_id, request_uri}; | ||
}; | ||
</script> |