C#格子Webhook如何解码

问题描述

我正在编写Webhook,以处理C#中的Plaid的自动微型存款。我不完全了解它应该如何工作,主要是因为这些示例使用的是我不知道的其他语言。

我的第一个问题是格子将给我发送一个字符串吗?我猜Jwt是字符串吗?

我的代码:

            var token = "[someJwtstring]";
            var handler = new JwtSecurityTokenHandler();
            var jsonToken = handler.ReadJwtToken(token);

            //Get the Json Web Key from the API using the key id
            var verifyJwt = await _plaidRepo.VerifyWebHook(jsonToken.Header.Kid);
            var webkey = new JsonWebKey()
            {
                Alg = verifyJwt.Data.alg,Crv = verifyJwt.Data.crv,Kty = verifyJwt.Data.kty,Use = verifyJwt.Data.use,X = verifyJwt.Data.x,Y = verifyJwt.Data.y
            };

到目前为止,我知道...但是现在呢?我该如何使用Web密钥才能获得请求正文?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)