Skip to content

binascii.Error: Odd-length string #20

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions