Acquire Token Interactive issue in docker container #736
-
Hello, I have an azure web app(x) deployed via docker container. I have another microsoft entra app with client id y, of which i want to acquire token by interactive method from user. Code used in x app(written in python) - app = msal.PublicClientApplication( result = app.acquire_token_interactive(scopes=scopes, prompt="select_account", parent_window_handle=msal.PublicClientApplication.CONSOLE_WINDOW_HANDLE //optional with allow broker While this is working fine on local environment without docker, but while running with docker, getting "Found no browser in the current environment. If this....." Got similar issue with #422 but since that is an old thread, not sure if we have got something for this case. Even if some manual way or workaround is there, please let us know. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Per offline conversation, the "web app X" in question is an Chainlit application.
So, you shall go with |
Beta Was this translation helpful? Give feedback.
Per offline conversation, the "web app X" in question is an Chainlit application.
PublicClientApplication.acquire_token_interactive()
can be used by a desktop script which is potentially running inside docker if the container was started by a certain ways. However, this API is not designed to be used by a web app. And web app shall not use it.So, you shall go with
#3
.