Closed jonaharagon closed 5 years ago
For some reason it was setting http in the redirect_uri
instead of https:
... &redirect_uri=http%3A%2F%2Fgitlab-tools.domain%2Fsign%2Fin%2Fdo ...
I have it behind an nginx reverse proxy which may be why. Changing it to https in the URL gives me the authorization form, but then when I accept I get a new error, this time in gitlab-tools:
Login failed: 401 Client Error: Unauthorized for url: https://gitlab.domain/oauth/token
I ended up installing it again on the server with nginx directly with uwsgi and it works. Before I was running nginx as a reverse proxy to the built-in webserver since I had nginx on an entirely different VM, but I guess that doesn't work.
Two notes, Flask-Script didn't install by itself so the installation initially failed, I needed to install python3-pip and run pip install Flask-Script
to get it working. And the initial setup doesn't create a secret key of any kind, and that wasn't documented in the README. But it works now!
@JonahAragon i added Flask-Script as depedency viz https://github.com/Salamek/gitlab-tools/commit/ce9c4ecd5cece984fe560a4926ffe55870f1ab7c
SECRET_KEY is generated by post_install script in app... and that failed due to missing Flask-Script...
I have
github-tools
installed and running, but when I sign in I get the following error in GitLab:My callback URL in the GitLab application is set to
https://gitlab-tools.domain/sign/in/do
, so I'm not sure what else I can check or do to troubleshoot this.