question

JL12345 avatar image
0 Votes"
JL12345 asked JL12345 edited

b2c + msaljs acquireTokenSilent does not execute custom policy?

I have a b2c sign in custom policy (which calls a REST API Connector)

In my spa app, I can sign in successfully (using msaljs 2).

But if I then call msalInstance.acquireTokenSilent(), it does not run through the custom policy again (ie, does not call my REST API Connector)

Calling either msalInstance.acquireTokenRedirect or msalInstance.acquireTokenPopup runs through the custom policy as I expected.

I have tried passing in forceRefresh, but no luck

msalInstance.acquireTokenSilent({ scopes, forceRefresh: true })


Is there any way to force acquireTokenSilent to run through the custom policy again, without requiring a popup/redirect?

Thanks

azure-ad-b2cazure-ad-msal
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers