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

binascii.Error: Odd-length string

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
62
Forks
27
PR merge metrics
No merged PRs in 30d

Description

```
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!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.