Extension functions for GetLoginProofInvitation and GetLoginProofResult
Extension functions for GetLoginProofInvitation
and GetLoginProofResult
OCM calls should be added.
The extension for GetLoginProofInvitation
will have to take scopes from the input
and a map between scopes and types of OCM credentials from a static data.json
file. With this information the extension should build a query string and use the OCM client to make a call to the out-of-bound
endpoint in the OCM.
Example response:
{
"link": "https://gaiax.vereign.com:443/ocm/didcomm/?d_m=eyJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvcHJlc2VudC1wcm9vZi8xLjAvcmVxdWVzdC1wcmVzZW50YXRpb24iLCJAaWQiOiJlYzkyZmJiNC02MDBiLTQyODQtYTQ4YS1jMjA5MDEwNGVhOGUiLCJjb21tZW50IjoiIiwicmVxdWVzdF9wcmVzZW50YXRpb25zfmF",
"requestId": "0df27be3-8379-4edd-a110-61f8a49af522"
}
The extension for GetLoginProofResult
will use the OCM client to call the get-presentation-by-id
endpoint in the OCM.
Example response:
{
"status": "ACCEPTED",
"name": "John",
"given_name": "John I",
"family_name": "Doe",
"middle_name": "",
"preferred_username": "John Doe",
"gender": "M",
"birthdate": "01.01.1970",
"upated_at": 1656497093,
"email": "john.doe@sample.com",
"email_verified": true,
"sub": "John Doe",
"iss": "https://gaiax.vereign.com/tsa",
"auth_time": 1656583493
}