question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Documentation] Should we use single ConfidentialClientApplication instance to acquire token for multiple users in web api?

See original GitHub issue

Documentation Related To Component:

MSAL SDK

Please check those that apply

  • typo
  • documentation doesn’t exist
  • documentation needs clarification
  • error(s) in example
  • needs example

Description Of The Issue

A web api will handle requests from multiple users. In this case, should we have one single ConfidentialClientApplication instance to acquire tokens for different users, or we should initialize a new ConfidentialClientApplication for each user? The functions provided by ConfidentialClientApplication can handle multiple users, but I would like to learn what’s the best practice. Thank you!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
blackchoeycommented, Mar 8, 2021

@jmprieur Thanks for the great explanations. Feel free to close this issue.

0reactions
jmprieurcommented, Mar 21, 2021

@dhmahidawork : which version of .NET do yo need?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Acquire and cache tokens with Microsoft Authentication ...
MSAL maintains a token cache (or two caches for confidential client applications) and caches a token after it's been acquired. In many cases, ......
Read more >
MSAL Python 1.23.0 documentation
Acquires token using on-behalf-of (OBO) flow. The current app is a middle-tier service which was called with a token representing an end user....
Read more >
High availability · AzureAD/microsoft-authentication-library- ...
In web app and web API scenarios, it is recommended to use a new ConfidentialClientApplication on each session and to serialize in the...
Read more >
Msal username password python. token_response = adal ...
The Web application uses MSAL for Python to sign-in a user and obtains an ID ... This document helps you to get the...
Read more >
Authorization Services Guide
OAuth2 clients (such as front end applications) can obtain access tokens from the server using the token endpoint and use these same tokens...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found