Skip to content

Commit

Permalink
Merge pull request #576 from 0xPolygonID/fix_auth_core_claim_revocati…
Browse files Browse the repository at this point in the history
…on_status_url

fix: rev status direct url
  • Loading branch information
martinsaporiti authored Dec 7, 2023
2 parents 78cc362 + a30fe2d commit 9b4d231
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 9b4d231

Please sign in to comment.