Код: Выделить всё
auth_response = public_app.acquire_token_interactive(scopes=user_scopes, port=5000)
Код: Выделить всё
token = auth_response['access_token']
Код: Выделить всё
Found no browser in current environment. If this program is being run inside a container which either (1) has access to host network (i.e. started by
Код: Выделить всё
), or (2) published port 5000 to host network (i.e. started by
Код: Выделить всё
), you can use browser on host to visit the following link. Otherwise, this auth attempt would either timeout (current timeout setting is None) or be aborted by CTRL+C. Auth URI:...
Когда я нажимаю на URL-адрес аутентификации, сгенерированный в журнале, я могу войти в систему как обычно, и приложение, созданное в Docker, работает отлично. Как я могу перенаправить на сгенерированный URI аутентификации? MSAL использует webbrowser.get() для обычного перенаправления.
Подробнее здесь: https://stackoverflow.com/questions/790 ... -container