[Documentation] Should we use single ConfidentialClientApplication instance to acquire token for multiple users in web api?
See original GitHub issueDocumentation 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:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jmprieur Thanks for the great explanations. Feel free to close this issue.
@dhmahidawork : which version of .NET do yo need?