Documentation on loadExternalToken
See original GitHub issueCore Library
MSAL.js v2 (@azure/msal-browser)
Wrapper Library
Not Applicable
Documentation Location
docs.microsoft.com
Description
Recently I’ve been experimenting with an existing Angular SPA, with @azure/msal-angular
in combination with a teams tabs. We figured out a hack-y-way to use information from the access token that we got from Teams SSO (the Teams app is pre-authorized, and can be instructed to request an access tokens for our custom api) and creating both an account and registering the access token for our api.
Then I started looking in the code and found this code loadExternalToken(…)
, this seems useful instead of us doing the same, while making direct calls to private methods on the browsercache.
But I cannot find a sample or any documentation on this advanced, well hidden, method. Maybe @tnorling can enlighten us?
Our higher goal is to still keep using msal-angular, but also using the access token we get from Teams SSO. Because that will make the process for the user a bit more smooth (skipping the login pop-up, that closes automatically anyway).
Issue Analytics
- State:
- Created a year ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
@svrooij I see. IMHO modifying the existing code (perhaps via a custom interceptor) to accommodate the SSO token from Teams SDK would be less of a hurdle in future than opening the app to unpredictable behavior by using the loadExternalToken API.
Thanks for the explanation. This issue can be closed