Skip to content

Commit 8535c96

Browse files
committed
Document how to use sha256 for client credential
1 parent b1d8cd7 commit 8535c96

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

msal/application.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ def __init__(
280280
281281
.. admonition:: Support using a certificate in X.509 (.pem) format
282282
283+
Deprecated because it uses SHA-1 thumbprint.
284+
Please use the .pfx option documented later in this page.
285+
283286
Feed in a dict in this form::
284287
285288
{
@@ -302,6 +305,9 @@ def __init__(
302305
<https://github.com/AzureAD/microsoft-authentication-library-for-python/issues/60>`_
303306
is an approach to allow easier certificate rotation.
304307
308+
Deprecated because it uses SHA-1 thumbprint.
309+
Please use the .pfx option documented later in this page.
310+
305311
*Added in version 0.5.0*::
306312
307313
{
@@ -338,6 +344,8 @@ def __init__(
338344
339345
.. admonition:: Supporting reading client certificates from PFX files
340346
347+
This usage will automatically use SHA-256 thumbprint of the certificate.
348+
341349
*Added in version 1.29.0*:
342350
Feed in a dictionary containing the path to a PFX file::
343351
@@ -352,6 +360,12 @@ def __init__(
352360
353361
.. admonition:: Support Subject Name/Issuer Auth with a cert in .pfx
354362
363+
`Subject Name/Issuer Auth
364+
<https://github.com/AzureAD/microsoft-authentication-library-for-python/issues/60>`_
365+
is an approach to allow easier certificate rotation.
366+
367+
This usage will automatically use SHA-256 thumbprint of the certificate.
368+
355369
*Added in version 1.30.0*:
356370
If your .pfx file contains both the private key and public cert,
357371
you can opt in for Subject Name/Issuer Auth like this::

0 commit comments

Comments
 (0)