Skip to content

Scenarios

Ray Luo edited this page Nov 9, 2020 · 2 revisions

Introduction

MSAL Python can be used by applications to acquire tokens to access a protected API. Tokens can be acquired by different application types: Desktop applications, Web applications, Web APIs, and applications running on devices that don't have a browser (such as IoT). In MSAL Python, applications are categorized as follows:

  • Public client applications (Desktop). These type of apps cannot store app secrets securely.
  • Confidential client applications (Web apps, Web APIs, and daemon applications). These type of apps securely store a secret registered with Azure AD.

Learn more details about instantiating and configuring the above in Client applications topic. MSAL Python supports acquiring tokens either in the name of a user, or, in the name of the application itself (without a user). In the latter case, a confidential client application must be used.

MSAL Python can be used in applications running on different operating systems (Windows, Linux, Mac). Scenarios might differ depending on the platform.

Here are the key scenarios supported by MSAL Python. You can read the detailed explanations with MSAL Python code usage by following the links.

Can't find the scenario you are looking for? Check out the supported scenarios and platforms across MSALs.