I am trying to write a command line interface (CLI) utility that authenticates against our Azure subscription/AD accounts. I want it to behave the same way the the Azure CLI (az login) works where when I run it, a window pops open and the user selects their account. Then the authentication occurs and Azure returns the token back to my CLI application so the user can use the application using their own identity. I can figure out how to get the device code flow working but I don't want the user to have to paste in a device code when they run my CLI. I want it to work the same way the "az" utility works and I'm unclear as to the flow az uses. Does anybody know what authentication flow the Azure az utility uses?


