Closed Theo-Dancoisne closed 9 months ago
The format requirement and suggestions are documented in the parameter client_credential
here.
The format requirement and suggestions are documented in the parameter
client_credential
here.
Thank you, didn't see this, too used to the doc on learn.microsoft.com and I forgot to check the readme. Sorry for the inconvenience, have a nice day.
Describe the bug Am I not supposed to use x.509 certificate ?
To Reproduce
Generate a certificate :
Ex 1 in PowerShell
And convert the certicate to a x64 one :
Ex 2 in Bash
Then
Follow the guidline: https://learn.microsoft.com/en-us/azure/active-directory/develop/scenario-daemon-acquire-token?tabs=idweb#acquiretokenforclient-api And run the script
Expected behavior
acquire_token_for_client
and print itWhat you see instead Sorry for the mess:
Shouldn't it use
x509.load_pem_x509_certificate
instead ofossl.load_pem_public_key
?The MSAL Python version you are using 1.24.0