Skip to content

Throw exception when acquire_token_interactive fails to open browser #424

Answered by rayluo
jiasli asked this question in Q&A
Discussion options

You must be logged in to vote

My brain was not sharp when you brought this up in our ad-hoc meeting yesterday (mid-night time here in Redmond). Now I can answer them better.

Goal

Suppose we don't have interest in supporting auth code flow in a docker container, and we just want to automatically fall back to device code flow.

Actually, we do have interest in supporting auth code flow as much as possible, even including some situations that were not previously considered possible. We will discuss more on those challenges in separate topics.

Therefore, MSAL's acquire_token_interactive() does not aggressively error out. That is also why you would observe the following symptom.

Currently in MSAL-based CLI, running az login

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rayluo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #421 on October 21, 2021 19:38.