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 on loadExternalToken

See original GitHub issue

Core 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:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
derisencommented, May 12, 2022

@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.

0reactions
svrooijcommented, May 13, 2022

Thanks for the explanation. This issue can be closed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access Tokens - Auth0
Access tokens are used in token-based authentication to allow an application to access an API. The application receives an access token after a...
Read more >
Persist additional claims and tokens from external providers in ...
An ASP.NET Core app can establish additional claims and tokens from external authentication providers, such as Facebook, Google, Microsoft, ...
Read more >
External OAuth Overview - Snowflake Documentation
Snowflake delegates the token issuance to a dedicated authorization server to ensure that the OAuth Client and user properly authenticate.
Read more >
Deploy tokens - GitLab Docs
In most cases you use a deploy token from an external host, like a build server or CI/CD server. With a deploy token,...
Read more >
Using Third-Party OAuth Tokens | Apigee Edge
In this topic, we'll discuss how to import externally generated access tokens, refresh tokens, or auth codes into the Edge token store. You...
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