Gitlab repo authorization fails on self-hosted instances
See original GitHub issueRecent releases of diagrams.net (not sure but at least in 14.9.7) self-hosted docker instance cannot authorize in GitLab 14.1.2 self-hosted instance as well). I thought this fails was due to some misconfiguration from my side… but…
It is strange that .html
has been missed ^^^ while it is explicitly emphasized in Guides (link1, jgraph/drawio#493 ), that gitlab.html
is important!
Suggested fix:
---GitLabClient.prototype.redirectUri = window.location.protocol + '//' + window.location.host + '/gitlab';
+++GitLabClient.prototype.redirectUri = window.location.protocol + '//' + window.location.host + '/gitlab.html';
this workaround worked before GitLab authetication process upgraded since release 14.6.7 and [docker-drawio] corresponding upgrade](https://github.com/jgraph/docker-drawio/commit/d52488974a0f7740a17c66929ba4943ecc4ccb1a). Nowdays similar way doesn’t work…
Issue Analytics
- State:
- Created 2 years ago
- Comments:40 (2 by maintainers)
Top Results From Across the Web
GitLab authentication and authorization
GitLab integrates with a number of OmniAuth providers, and the following external authentication and authorization providers:.
Read more >Connecting self-hosted GitLab instances - Bitrise Docs
Setting up an app that is in a self-hosted GitLab repository is very simple: Bitrise needs to be authorized as an application for...
Read more >Connecting a self-hosted GitLab repository as your source
Go to Settings / Self Hosted GitLab · Enter the details for your self-hosted instance of GitLab · Click Configure Self Hosted GitLab....
Read more >Gitlab (self hosted gitlab) pipeline fail when trying to fetch ...
So, per the above, host everything with https:// and proper user-name/password/api token/etc auth. Allowing "all of internet" inbound is a bad ...
Read more >Getting started with the API - python-gitlab v3.12.0
Gitlab (private_token='JVNSESs8EwWRx5yDxM5q') # private token or personal token authentication (self-hosted GitLab instance) gl = gitlab.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This helped to finally fix the issue: https://stackoverflow.com/a/42377335/8655060
Just imported self-signed certificate of gitlab instance into java keystore inside self-hosted drawio container and restarted it!
Thanks everybody!
We have used the fix as in #2193.
As for servlet and serving the project we aren’t following. What do you mean by serving the project? Do we need to activate or configure something else?
We are running a self-hosted GitLab and DrawIO runs as a container inside an OpenShift cluster. We are setting thethe following environment variables:
but not