Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adding some comments for more information
  • Loading branch information
abhidnya13 committed Oct 25, 2019
commit 4307d6562d5055f8a2ff968c91923a2373bb536e
4 changes: 3 additions & 1 deletion sample/confidential_client_certificate_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
// https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow#second-case-access-token-request-with-a-certificate"

"thumbprint": "790E... The thumbprint generated by AAD when you upload your public cert",
"private_key_file": "filename.pem"
"private_key_file": "filename.pem",
// For information about generating thumbprint and private key file, refer:
// https://github.com/AzureAD/microsoft-authentication-library-for-python/wiki/Client-Credentials#client-credentials-with-certificate

"endpoint": "https://graph.microsoft.com/v1.0/users"
// scope needed for this is User.Read.All from Application permissions which needs admin consent
// https://github.com/Azure-Samples/ms-identity-python-daemon/blob/master/2-Call-MsGraph-WithCertificate/README.md
}

You can then run this sample with a JSON configuration file:
Expand Down
3 changes: 2 additions & 1 deletion sample/confidential_client_secret_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
// https://github.com/AzureAD/microsoft-authentication-library-for-python/wiki/Client-Credentials#registering-client-secrets-using-the-application-registration-portal

"endpoint": "https://graph.microsoft.com/v1.0/users"

//scope needed for this is User.Read.All from Application permissions which needs admin consent
// https://github.com/Azure-Samples/ms-identity-python-daemon/blob/master/1-Call-MsGraph-WithSecret/README.md
}

You can then run this sample with a JSON configuration file:
Expand Down