[英]QR Code Got Expire ? with azure verifiable credential
I used "https://verifiedid.did.msidentity.com/v1.0/verifiableCredentials/createIssuanceRequest" api to generate my QR Code Response is我使用“https://verifiedid.did.msidentity.com/v1.0/verifiableCredentials/createIssuanceRequest”api 生成我的二维码响应是
{ {
"requestId": "799f23ea-5241-45af-99ad-cf8e5018814e", "requestId": "799f23ea-5241-45af-99ad-cf8e5018814e",
"url": "openid://vc?request_uri=https://verifiedid.did.msidentity.com/v1.0/12345678-0000-0000-0000-000000000000/verifiableCredentials/request/178319f7-20be-4945-80fb-7d52d47ae82e", “url”:“openid://vc?request_uri=https://verifiedid.did.msidentity.com/v1.0/12345678-0000-0000-0000-000000000000/verifiableCredentials/request/178319f7-20be-4945-80fb -7d52d47ae82e",
"expiry": 1622227690, “到期”:1622227690,
"qrCode": "data:image/png;base64,iVBORw0KggoA" "qrCode": "数据:图像/png;base64,iVBORw0KggoA"
} }
but the issue is my QRcode get expire in 5 mins?但问题是我的二维码会在 5 分钟后过期?
any help on this.....对此有任何帮助......
The QR code is only valid for 5 minutes.二维码仅在 5 分钟内有效。 If you want a QR code valid for longer, or even a static QR code, you need to do make the QR code point back to your app where you make the createIssuanceRequest at that point.
如果您想要一个有效期更长的 QR 码,甚至是 static QR 码,您需要将 QR 码指向您的应用程序,然后在其中创建 createIssuanceRequest。 The VC+B2C sample has a version of this, but for presentation.
VC+B2C 示例有一个版本,但用于演示。 See the -link and -proxy methods https://github.com/Azure-Samples/active-directory-verifiable-credentials-dotnet/blob/main/3-asp-net-core-api-b2c/ApiVerifierController.cs
请参阅 -link 和 -proxy 方法https://github.com/Azure-Samples/active-directory-verifiable-credentials-dotnet/blob/main/3-asp-net-core-api-b2c/ApiVerifierController.cs
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.