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.

Acquire token silently

See original GitHub issue

Hi, Is there a way to have a function to refresh the token silently using the msal.acquireTokenSilent function. This will help with refreshing the token silently instead of having a popup/redirect. Maybe a fallback could be a popup/redirect.

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
step-leecommented, Apr 10, 2019

I have a PR out to improve the behavior of acquireTokenSilent as that function can be problematic right now. The msal team is currently working on some changes and I’m working with them to hopefully get that merge in

2reactions
AndrewCraswellcommented, Jul 25, 2019

@step-lee are you still working on that PR for MSAL? Looks like someone else is itching to get that into MSAL, and it would make a great improvement to this project 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get a token from the token cache using MSAL.NET
Desktop, command-line, and mobile applications should first call the AcquireTokenSilent method to verify if an acceptable token is in the cache.
Read more >
AcquireTokenSilent is Failing to acquire token silently?
AcquireTokenSilentAsync will try all ways it can to get you a valid token without prompting for an interactive auth request.
Read more >
microsoft-authentication-library-for-js/acquire-token.md at dev
The acquireToken* methods abstract away the 2 steps involved in acquiring tokens ... Access tokens for previously consented scopes can be acquired silently....
Read more >
ConfidentialClientApplication | microsoft-authentication ...
This class is to be used to acquire tokens for confidential client ... Otherwise, it is recommended that you use acquireTokenSilent() for silent...
Read more >
ConfidentialClientApplication (msal4j 1.4.0 API) - javadoc.io
Acquires a security token from the authority using a refresh token previously received. CompletableFuture<IAuthenticationResult>, acquireTokenSilently( ...
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