-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* manage templates for verifier Signed-off-by: Mirko Mollik <[email protected]> * add template for issuer Signed-off-by: Mirko Mollik <[email protected]> * use only db as the template service implementation Signed-off-by: Mirko Mollik <[email protected]> * update metadata and templates Signed-off-by: Mirko Mollik <[email protected]> --------- Signed-off-by: Mirko Mollik <[email protected]>
- Loading branch information
Showing
41 changed files
with
775 additions
and
154 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
3 changes: 1 addition & 2 deletions
3
apps/holder-backend/src/app/auth/oidc-client/keycloak-oidc-client.ts
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
8 changes: 1 addition & 7 deletions
8
apps/holder-backend/src/app/auth/webauthn/entities/passkey.entity.ts
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
2 changes: 1 addition & 1 deletion
2
apps/holder-backend/src/app/oid4vc/oid4vci/oid4vci.controller.ts
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
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
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,45 @@ | ||
import { | ||
ImageInfo as IImageInfo, | ||
MetadataDisplay as IMetadataDisplay, | ||
} from '@sphereon/oid4vci-common'; | ||
import { Type } from 'class-transformer'; | ||
import { IsString, IsOptional, ValidateNested, IsArray } from 'class-validator'; | ||
|
||
export class ImageInfo implements IImageInfo { | ||
[key: string]: unknown; | ||
@IsString() | ||
@IsOptional() | ||
url?: string; | ||
@IsString() | ||
@IsOptional() | ||
alt_text?: string; | ||
} | ||
|
||
class MetadataDisplay implements IMetadataDisplay { | ||
[key: string]: unknown; | ||
@IsString() | ||
name: string; | ||
@IsString() | ||
@IsOptional() | ||
locale?: string; | ||
@ValidateNested() | ||
@Type(() => ImageInfo) | ||
logo?: ImageInfo; | ||
@IsString() | ||
@IsOptional() | ||
description?: string; | ||
@IsOptional() | ||
@IsString() | ||
background_color?: string; | ||
@IsOptional() | ||
@IsString() | ||
text_color?: string; | ||
} | ||
|
||
export class Metadata { | ||
@IsOptional() | ||
@ValidateNested({ each: true }) | ||
@IsArray() | ||
@Type(() => MetadataDisplay) | ||
display?: MetadataDisplay[]; | ||
} |
Oops, something went wrong.