Azure-Samples / ms-identity-docs-code-python

Source for the Python code snippets in the Microsoft identity platform documentation found on https://docs.microsoft.com.
https://docs.microsoft.com/azure/active-directory/develop
MIT License
26 stars 24 forks source link

Add canonical cli app, with initial MSAL usage to access protected api #2

Closed ckittel closed 2 years ago

ckittel commented 2 years ago

Why?

As part of the docs tutorial series, we plan to showcase a console application, written in python, that uses client credentials (secret) to access a protected api.

What Changed?

What is NOT included?

How to test?

Follow the steps in the README.md

Internal IDs

docs-code-012, #1657584, #1657574

ckittel commented 2 years ago

@mmacy -- all feedback was addressed in https://github.com/Azure-Samples/ms-identity-docs-code-python/pull/2/commits/3729dd95d9069faad8191d156b82d71b7fcfffec or in the comment/responses above.

Also,

$ pylint cli.py
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

$ flake8 ./cli.py 
$ 

and black was run to do the formatting.

I'll note these tools going forward. Thanks.