Skip to content

Commit

Permalink
fix: update the jwt to have shortform of prosm did
Browse files Browse the repository at this point in the history
Signed-off-by: mineme0110 <shailesh.patil@iohk.io>
  • Loading branch information
mineme0110 committed Nov 20, 2024
1 parent 7839b95 commit 5aca5d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ class CredentialServiceImpl(
maybeId = None,
`type` =
Set("VerifiableCredential"), // TODO: This information should come from Schema registry by record.schemaId
issuer = CredentialIssuer(jwtIssuer.did.toString, `type` = "Profile"),
issuer = CredentialIssuer(issuingDID.did.toString, `type` = "Profile"),
issuanceDate = issuanceDate,
maybeExpirationDate = record.validityPeriod.map(sec => issuanceDate.plusSeconds(sec.toLong)),
maybeCredentialSchema = record.schemaUris.map(ids =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class JwtProofSteps {
@When("{actor} sends a request for jwt proof from trustedIssuer {actor} using {} schema presentation to {actor}")
fun verifierSendsARequestForJwtProofPresentationToHolderUsingSchemaFromTrustedIssuer(verifier: Actor, issuer: Actor, schema: CredentialSchema, holder: Actor) {
val verifierConnectionToHolder = verifier.recall<Connection>("connection-with-${holder.name}").connectionId
val trustIssuer = issuer.recall<String>("longFormDid")
val trustIssuer = issuer.recall<String>("shortFormDid")
val baseUrl = issuer.recall<String>("baseUrl")
val schemaGuid = issuer.recall<String>(schema.name)!!
val schemaId = "$baseUrl/schema-registry/schemas/$schemaGuid"
Expand Down

0 comments on commit 5aca5d7

Please sign in to comment.