Skip to content

Commit

Permalink
integrate latest identity grpc service
Browse files Browse the repository at this point in the history
  • Loading branch information
eike-hass committed Jul 26, 2024
1 parent 2c7ed97 commit 799dc92
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions shared/proto/identity/utils.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,18 @@ message DataSigningResponse {
// Service that handles signing operations on raw data.
service Signing {
rpc sign(DataSigningRequest) returns (DataSigningResponse);
}

message DidJwkResolutionRequest {
// did:jwk string
string did = 1;
}

message DidJwkResolutionResponse {
// JSON DID Document
string doc = 1;
}

service DidJwk {
rpc resolve(DidJwkResolutionRequest) returns (DidJwkResolutionResponse);
}
16 changes: 16 additions & 0 deletions tooling/API/Identity/GRPC.http
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,20 @@ GRPC /DomainLinkage/validate_did
GRPC /CredentialPresentation/validate
{
"jwt": "{{jwt}}"
}
###
GRPC /CredentialPresentation/validate
{
"jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpqd2s6ZXlKaGJHY2lPaUpGWkVSVFFTSXNJbU55ZGlJNklrVmtNalUxTVRraUxDSnJhV1FpT2lKeWNIcEZNVWhyVW1aaVpYUldaRmQ1WW1wRFRFRkpMVlJxY2pWclRsVmpNRk5GZVdsaWVFRlNUamxySWl3aWEzUjVJam9pVDB0UUlpd2llQ0k2SW5wSGRGTnVWWHBwZFdoWFZWTjJNVGhqUVZWemRrNWlVWGR4WjBsNWQyaE9ZMnBVUW5oblNITnpTVWtpZlEjMCJ9.eyJpc3MiOiJkaWQ6andrOmV5SmhiR2NpT2lKRlpFUlRRU0lzSW1OeWRpSTZJa1ZrTWpVMU1Ua2lMQ0pyYVdRaU9pSnljSHBGTVVoclVtWmlaWFJXWkZkNVltcERURUZKTFZScWNqVnJUbFZqTUZORmVXbGllRUZTVGpscklpd2lhM1I1SWpvaVQwdFFJaXdpZUNJ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AHrwQ6MIitU6x4wEv7EqnxI0Jd30xrqZ0wZAQ-JmpZ6fag9g8SKHx3x3RMEKBrgqvpMVhDPcmDQ"
}
###

{{
//pre request script
exports.data = new TextEncoder().encode("test");
}}

GRPC /DidJwk/resolve
{
"did": "did:jwk:eyJhbGciOiJFZERTQSIsImNydiI6IkVkMjU1MTkiLCJraWQiOiJycHpFMUhrUmZiZXRWZFd5YmpDTEFJLVRqcjVrTlVjMFNFeWlieEFSTjlrIiwia3R5IjoiT0tQIiwieCI6InpHdFNuVXppdWhXVVN2MThjQVVzdk5iUXdxZ0l5d2hOY2pUQnhnSHNzSUkifQ"
}

0 comments on commit 799dc92

Please sign in to comment.