MSAL client type
Confidential
Problem Statement
Currently, authenticating a service principal with certificate only supports plain-text certificate string as private_key:
|
:param client_credential: |
|
For :class:`PublicClientApplication`, you use `None` here. |
|
For :class:`ConfidentialClientApplication`, |
|
it can be a string containing client secret, |
|
or an X509 certificate container in this form:: |
|
|
|
{ |
|
"private_key": "...-----BEGIN PRIVATE KEY-----... in PEM format", |
|
"thumbprint": "A1B2C3D4E5F6...", |
|
"public_certificate": "...-----BEGIN CERTIFICATE-----... (Optional. See below.)", |
|
"passphrase": "Passphrase if the private_key is encrypted (Optional. Added in version 1.6.0)", |
|
} |
Proposed solution
It would be helpful to allow reading certificate from Windows certificate store.
MSAL client type
Confidential
Problem Statement
Currently, authenticating a service principal with certificate only supports plain-text certificate string as
private_key:microsoft-authentication-library-for-python/msal/application.py
Lines 213 to 224 in 52b1fc5
Proposed solution
It would be helpful to allow reading certificate from Windows certificate store.