Skip to content

Commit

Permalink
chore: update auth core claim id
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsaporiti committed Sep 9, 2024
1 parent 0640975 commit 929f016
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/core/services/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
"github.com/polygonid/sh-id-platform/internal/db"
"github.com/polygonid/sh-id-platform/internal/kms"
"github.com/polygonid/sh-id-platform/internal/log"
"github.com/polygonid/sh-id-platform/internal/urn"
"github.com/polygonid/sh-id-platform/pkg/credentials/revocation_status"
"github.com/polygonid/sh-id-platform/pkg/credentials/signature/circuit/signer"
"github.com/polygonid/sh-id-platform/pkg/credentials/signature/suite"
Expand Down Expand Up @@ -1142,7 +1143,7 @@ func (i *identity) authClaimToModel(ctx context.Context, did *w3c.DID, identity
return nil, err
}

authCred.ID = fmt.Sprintf("%s/api/v2/credentials/%s", strings.TrimSuffix(hostURL, "/"), authClaimID)
authCred.ID = string(urn.FromUUID(authClaimID))
cs, err := i.revocationStatusResolver.GetCredentialRevocationStatus(ctx, *did, revNonce, *identity.State.State, status)
if err != nil {
log.Error(ctx, "get credential status", "err", err)
Expand Down

0 comments on commit 929f016

Please sign in to comment.