-
Notifications
You must be signed in to change notification settings - Fork 205
Client Applications
Navya Canumalla edited this page Nov 28, 2019
·
2 revisions
Before instantiating your app with MSAL Python,
- Understand the types of Client applications available- Public Client and Confidential Client applications.
- You'll need to register the application with Azure AD. You will therefore know:
- Its
client_id
(a string representing a GUID) - The identity provider URL (named the instance) and the sign-in audience for your application. These two parameters are collectively known as the authority.
- Possibly the
Tenant+id
in the case you are writing a line of business application (just for your organization, also named single-tenant application) - In case it's a confidential client app, its application secret (
client_secret
string) or certificate - For web apps, you'll have also set the
redirect_uri
where the identity provider will contact back your application with the security tokens.
- Its
app = msal.PublicClientApplication(
config["client_id"],
authority=config["authority"],
)
app = msal.ConfidentialClientApplication(
config["client_id"],
authority=config["authority"],
client_credential=config["client_secret"],
)