Skip to content

Commit

Permalink
fix: rev status direct url
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsaporiti committed Dec 6, 2023
1 parent 78cc362 commit a30fe2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/issuer_initializer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ func main() {
rhsFactory := reverse_hash.NewFactory(cfg.CredentialStatus.RHS.GetURL(), ethConn, common.HexToAddress(cfg.CredentialStatus.OnchainTreeStore.SupportedTreeStoreContract), reverse_hash.DefaultRHSTimeOut)
revocationStatusResolver := revocation_status.NewRevocationStatusResolver(cfg.CredentialStatus)
cfg.CredentialStatus.SingleIssuer = true
// this is needed to create the did with the correct auth core claim revocation status URL
cfg.CredentialStatus.DirectStatus.URL = cfg.APIUI.ServerURL
identityService := services.NewIdentity(keyStore, identityRepository, mtRepository, identityStateRepository, mtService, nil, claimsRepository, nil, nil, storage, nil, nil, nil, cfg.CredentialStatus, rhsFactory, revocationStatusResolver)

didCreationOptions := &ports.DIDCreationOptions{
Expand All @@ -148,7 +150,7 @@ func main() {
AuthBJJCredentialStatus: verifiable.CredentialStatusType(cfg.CredentialStatus.CredentialStatusType),
}

identity, err := identityService.Create(ctx, cfg.ServerUrl, didCreationOptions)
identity, err := identityService.Create(ctx, cfg.APIUI.ServerURL, didCreationOptions)
if err != nil {
log.Error(ctx, "error creating identifier", err)
return
Expand Down

0 comments on commit a30fe2d

Please sign in to comment.