microsoftgraph / msgraph-cli-archived

The Microsoft Graph CLI repository has moved. This repository is now an archive.
https://github.com/microsoftgraph/msgraph-cli
Other
44 stars 9 forks source link

Cannot login "token cannot be stored" while pygobject is installed (Docker) #79

Closed Zocker1999NET closed 3 years ago

Zocker1999NET commented 3 years ago

Describe the bug I cannot login due to msgraph-cli requiring PyGObject installed, even after installing PyGObject using the commands given by msgraph-cli.

root@70ad05df15a7:/msgraph-cli# mg login --scopes "user.read.all"

            Token can't be stored securely. Install PyGObject to store token securely.

            sudo apt install libgirepository1.0-dev libcairo2-dev python3-dev gir1.2-secret-1
            pip install pygobject

Login failed
root@70ad05df15a7:/msgraph-cli# 

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/microsoftgraph/msgraph-cli
  2. cd msgraph-cli
  3. docker build --target build-env -f ./build_scripts/debian/Dockerfile -t microsoft/msgraph-cli:ubuntu-builder . (from README)
  4. docker run -it --name deb microsoft/msgraph-cli:ubuntu-builder (from README)
  5. mg login --scopes "user.read.all" (first try to login)
  6. apt install libgirepository1.0-dev libcairo2-dev python3-dev gir1.2-secret-1 (first command of note above)
  7. pip install pygobject (second command of note above)
  8. mg login --scopes "user.read.all" (second try after installing PyGObject)

Expected behavior Logging in just works.

Additional context I just followed the instructions in README and the error message above, so I have not any idea how I could solve this problem.

AB#8149