Azure-Samples / Azure-Samples/ms-identity-python-daemon

binascii.Error: Odd-length string

未关闭
#20 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PowerShell
星标
62
派生
27
PR 合并指标
30 天内没有已合并 PR

描述

```
Traceback (most recent call last):
File "/Users/jcachat/screenpilot/ms-identity-python-daemon-master/2-Call-MsGraph-WithCertificate/confidential_client_certificate_sample.py", line 38, in
app = msal.ConfidentialClientApplication(
File "/Users/jcachat/anaconda3/envs/BingAPI-py39/lib/python3.9/site-packages/msal/application.py", line 572, in __init__
self.client, self._regional_client = self._build_client(
File "/Users/jcachat/anaconda3/envs/BingAPI-py39/lib/python3.9/site-packages/msal/application.py", line 677, in _build_client
assertion = JwtAssertionCreator(
File "/Users/jcachat/anaconda3/envs/BingAPI-py39/lib/python3.9/site-packages/msal/oauth2cli/assertion.py", line 89, in __init__
binascii.a2b_hex(sha1_thumbprint)).decode()
**binascii.Error: Odd-length string**
```

1-Call-MsGraph-WithSecret WORKED

2-Call-MSGraph-WithCertificate DID NOT!

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。