Closed sadasant closed 3 years ago
Here's what I know so far,
DeviceCodeCredential (DCC) uses PublicClientApplication, from @azure/msal-node. PublicClientApplication extends ClientApplication, which has at least two distinct notions of a timeout:
const hash = await interactionHandler.monitorPopupForHash(popupWindow, this.config.system.windowHashTimeout);
const silentHandler = new SilentHandler(authClient, this.browserStorage, this.config.system.loadFrameTimeout);
I think that configuration makes sense to work with, but I might not have enough context.
I had a conversation with @jonathandturner about this feature and how Python approaches it (here) and, since this issue relates to MSAL and to the work he's already doing, we decided on assigning this back to him! Thank you, Jonathan!
Request on MSAL for reference: https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/2494
Turns out this is an inconsistency in Python. In JS it can be resolved with the abort signal. I'll close this for now.
Python currently offers a way to timeout the authentication request. We should investigate if we can add the same feature.