Skip to content

Commit

Permalink
feat: add support for verifier logo uri
Browse files Browse the repository at this point in the history
Signed-off-by: Andrii Holovko <[email protected]>
  • Loading branch information
aholovko committed Aug 4, 2023
1 parent 19de242 commit 7c68c81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/profile/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ type Verifier struct {
Version Version `json:"version,omitempty"`
Name string `json:"name,omitempty"`
URL string `json:"url,omitempty"`
LogoURI string `json:"logoURI,omitempty"`
Active bool `json:"active,omitempty"`
OrganizationID string `json:"organizationID,omitempty"`
Checks *VerificationChecks `json:"checks,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions pkg/service/oidc4vp/oidc4vp_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ type RequestObjectRegistration struct {
SubjectSyntaxTypesSupported []string `json:"subject_syntax_types_supported"`
VPFormats *presexch.Format `json:"vp_formats"`
ClientPurpose string `json:"client_purpose"`
LogoURI string `json:"logo_uri"`
}

type eventPayload struct {
Expand Down Expand Up @@ -651,6 +652,7 @@ func (s *Service) createRequestObject(
SubjectSyntaxTypesSupported: []string{"did:ion"},
VPFormats: vpFormats,
ClientPurpose: purpose,
LogoURI: profile.LogoURI,
},
Claims: RequestObjectClaims{VPToken: VPToken{
presentationDefinition,
Expand Down
1 change: 1 addition & 0 deletions test/bdd/fixtures/profile/profiles.json
Original file line number Diff line number Diff line change
Expand Up @@ -1473,6 +1473,7 @@
"name": "v_myprofile_multivp_jwt",
"organizationID": "f13d1va9lp403pb9lyj89vk55",
"url": "https://test-verifier.com",
"logoURI": "https://test-verifier.com/logo.png",
"active": true,
"webHook": "http://vcs.webhook.example.com:8180",
"checks": {
Expand Down

0 comments on commit 7c68c81

Please sign in to comment.