Skip to content

Commit

Permalink
Merge branch 'EWC-consortium:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
josmilan authored Sep 3, 2024
2 parents bde6487 + b632d5f commit be1163c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Sources/eudiWalletOidcIos/Service/IssueService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,16 @@ public class IssueService: NSObject, IssueServiceProtocol {
return nil
}
}

public func getCredentialDisplayFromIssuerConfig(issuerConfig: IssuerWellKnownConfiguration?, type: String?) -> Display? {
guard let issuerConfig = issuerConfig else { return nil }

if let credentialSupported = issuerConfig.credentialsSupported?.dataSharing?[type ?? ""] {
return credentialSupported.display?[0] ?? nil
} else {
return nil
}
}
}


Expand Down
2 changes: 2 additions & 0 deletions Sources/eudiWalletOidcIos/Service/IssueServiceProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@ protocol IssueServiceProtocol {

func getCryptoFromIssuerConfig(issuerConfig: IssuerWellKnownConfiguration?, type: String?) -> [String]?

func etCredentialDisplayFromIssuerConfig(issuerConfig: IssuerWellKnownConfiguration?, type: String?) -> Display?

}

0 comments on commit be1163c

Please sign in to comment.