You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: msal/application.py
+12-38Lines changed: 12 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -280,15 +280,17 @@ def __init__(
280
280
281
281
.. admonition:: Support using a certificate in X.509 (.pem) format
282
282
283
-
Deprecated because it uses SHA-1 thumbprint.
283
+
Deprecated because it uses SHA-1 thumbprint,
284
+
unless you are still using ADFS which supports SHA-1 thumbprint only.
284
285
Please use the .pfx option documented later in this page.
285
286
286
287
Feed in a dict in this form::
287
288
288
289
{
289
290
"private_key": "...-----BEGIN PRIVATE KEY-----... in PEM format",
290
-
"thumbprint": "A1B2C3D4E5F6...",
291
-
"passphrase": "Passphrase if the private_key is encrypted (Optional. Added in version 1.6.0)",
291
+
"thumbprint": "An SHA-1 thumbprint such as A1B2C3D4E5F6...",
292
+
"passphrase": "Needed if the private_key is encrypted (Added in version 1.6.0)",
293
+
"public_certificate": "...-----BEGIN CERTIFICATE-----...", # Needed if you use Subject Name/Issuer auth. Added in version 0.5.0.
292
294
}
293
295
294
296
MSAL Python requires a "private_key" in PEM format.
@@ -299,28 +301,11 @@ def __init__(
299
301
The thumbprint is available in your app's registration in Azure Portal.
300
302
Alternatively, you can `calculate the thumbprint <https://github.com/Azure/azure-sdk-for-python/blob/07d10639d7e47f4852eaeb74aef5d569db499d6e/sdk/identity/azure-identity/azure/identity/_credentials/certificate.py#L94-L97>`_.
301
303
302
-
.. admonition:: Support Subject Name/Issuer Auth with a cert in .pem
0 commit comments