Skip to content

[OCM] ParticipantCredentialRequest

HTTP Endpoint Overview

Calling the endpoint executes a policy to determine whether a Verifiable Credential (VC) issuance request from an OCM (participant) should proceed.

flowchart LR 
	subgraph Org 1
	A
	end
	A[OCM] -- Request VC --> B[OCM]
	subgraph Org 2
	B -- /policy/ParticipantCredentialRequest --> C[TSA]
	end

Functionality

Decision could be based on:

  • whether connection is in ACTIVE state
  • what if the credential is already issued?
  • is timestamp needed in the request?
  • see other possible rules in the DOCS

CURL example

POST /policy/{groupName}/{policyName}/{version}/evaluation

curl -X POST http://localhost:8080/policy/testgroup/ParticipantCredentialRequest/1.0/evaluation

Request Body

{
  "data": {
    "participantDid": "did:example:123456789abcdefghi",
    "participantEmail": "info@example.com",
    "connectionId": 1646925527015
  }
} 

Response

{
  "allow": true
}
Edited by Lyuben Penkovski