See sample directories

A desktop app can perform different authentication flows based on the scenario. The samples in this repo are separated into sub-folders named by the authentication flow being used.


To run this sample, you'll need:

Setup and run the sample

Download and extract the repository .zip file from your shell or command line.

Then, see the readme of each sub-folder to understand how to setup and run the samples, and learn key concepts.


This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact with any additional questions or comments.