Getting 400 Bad Request while calling verify api #615
aniket-tarento
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@tejash-jl I'm trying to call /api/v1/verify api with the signed credentials but getting 400 error as response. Please, help me with this.
Here's the curl for api call:
curl --location 'http://localhost:8081/api/v1/verify' \ --header 'Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICItSDNUSUt0ZW1kSDh5d1RnSTJBdFRxU2FnRjdNR1BKc083OUYxNlB3X093In0.eyJleHAiOjE2ODE4Nzg0NTYsImlhdCI6MTY4MTg3ODE1NiwianRpIjoiZmY3NzJhMmQtOTdiZi00ZWEzLWEwZmMtZTljYTU5M2ViODA5IiwiaXNzIjoiaHR0cDovL2tleWNsb2FrOjgwODAvYXV0aC9yZWFsbXMvc3VuYmlyZC1yYyIsImF1ZCI6WyJyZWFsbS1tYW5hZ2VtZW50IiwiYWNjb3VudCJdLCJzdWIiOiIzY2M5YWM2MC1iNjdkLTRjNTctODAwNS1hY2Q0ZDIzNmIyZGMiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhZG1pbi1hcGkiLCJhY3IiOiIxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIm9mZmxpbmVfYWNjZXNzIiwiZGVmYXVsdC1yb2xlcy1zdW5iaXJkLXJjIiwidW1hX2F1dGhvcml6YXRpb24iXX0sInJlc291cmNlX2FjY2VzcyI6eyJyZWFsbS1tYW5hZ2VtZW50Ijp7InJvbGVzIjpbIm1hbmFnZS1yZWFsbSIsIm1hbmFnZS11c2VycyJdfSwiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJlbWFpbCBwcm9maWxlIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJjbGllbnRJZCI6ImFkbWluLWFwaSIsImNsaWVudEhvc3QiOiIxNzIuMjMuMC4xIiwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LWFkbWluLWFwaSIsImNsaWVudEFkZHJlc3MiOiIxNzIuMjMuMC4xIn0.Z5OQitC8OJ16oM-bOxs88QVTg-RAwHT4VjH0CIGBOPDQNrbhbp29eoPD7fSHqHCW_GFgpT2sxWgFpp6Ky3t5EyCWUs5IfXNXFy_mYBVuvv3Q3bHY2L0fC3I9p3hbL1FhK2twg6ZrBiHrSj6Bc-sDfIGv5WPnBkrOf4eX9xHRMo8bUvG4HZMqx6vKD53WN0ov6w4BAFOO0xJPOUHwHaKQRen3MZfT9XZoiRG7h79FsuhSD7-X-p9bDat6TqpwT-Loqq1Y8EIjPhYCmF10p9rlTkvCG4x4bFFqtIAJFJmsRW6YXyYk12-gUVV_F9dYukbLHlRzC4tMxmFIMXAgEY6RfA' \ --header 'Content-Type: application/json' \ --header 'Cookie: JSESSIONID=53185D3A95ABFB7C0BBDA16810095BB2' \ --data-raw '{ "signedCredentials": { "@context": [ "https://www.w3.org/2018/credentials/v1", { "@version": 1.1, "@protected": true, "SkillCertificate": { "@id": "https://github.com/sunbird-specs/vc-specs#SkillCertificate", "@context": { "id": "@id", "@version": 1.1, "@protected": true, "skills": "schema:Text" } }, "Person": { "@id": "https://github.com/sunbird-specs/vc-specs#Person", "@context": { "name": "schema:Text" } }, "trainedOn": { "@id": "https://github.com/sunbird-specs/vc-specs#trainedOn", "@context": { "name": "schema:Text" } } } ], "type": [ "VerifiableCredential" ], "issuanceDate": "2021-08-27T10:57:57.237Z", "credentialSubject": { "type": "Person", "name": "Taher", "trainedOn": "Javascript Boot Camp" }, "issuer": "did:web:sunbirdrc.dev/vc/skill", "proof": { "type": "RsaSignature2018", "created": "2023-04-18T06:28:43Z", "verificationMethod": "did:india", "proofPurpose": "assertionMethod", "jws": "eyJhbGciOiJQUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..erZE9I9ZNsfWNTRE6meAQiXIehNkCsmk66zTmlLCKp8nD-wcd0q0ZrImHOBGqb128eg-N8Aed138seErP48OaSITUgX3cCs8nvOsCP25jN6o2lTSoVwX0GtxWSS01_WTZ820bTwMtW8elyqi2BXzqfZD1vOQcshRVg0I9KYBL3qmHeBNs8kJDy1g-ctqdg9YS029geH6GKaeDpE6AJIXWL5Fw6nFAdimhC-ImpT5NzET3PX-qizrO0qb_1xgocgrV9Aa9IOJ6UgCsmRxb23HpWpS1Vyj7Nnz_qE9zUL7LoWFEB-oTnVfdpnsX1twQ1XquOIpo1fFSasTWq1QLRG5tQ" } } }'
Beta Was this translation helpful? Give feedback.
All reactions