-
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.
Add check for mdoc/sdjwt + zkp formats to request and sd-jwt claims
- Loading branch information
Showing
5 changed files
with
141 additions
and
56 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,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