sentry-auth-gitlab icon indicating copy to clipboard operation
sentry-auth-gitlab copied to clipboard

Is additional configuration required to activate plugin?

Open dbzonneveld opened this issue 8 years ago • 3 comments

Hi,

I followed the installation steps on a clean deployment of Sentry 8.2.1 for this plugin. After restarting Sentry there appeared no Gitlab option in the Auth section. What could be the cause of this, am I missing a step which is not documented?

dbzonneveld avatar Nov 01 '17 20:11 dbzonneveld

I eventually found the cause for my problems, they were unrelated to Gitlab. I use the onpremise setup via docker-compose to start the environment. I symlinked the configured files, so that I could easily edit them via my computer. But as it turns out that does not work, the symlink is copied into the containers, the configuration files were not loaded correctly. After fixing that the Gitlab SSO integration immediately popped up in the auth section.

danships avatar Nov 14 '17 15:11 danships

it works with 9.0.0, I didn't get it first as I made the wrong GITLAB_HTTP_SCHEME.

DeoLeung avatar Dec 18 '18 15:12 DeoLeung

I'm having trouble getting this plugin to work. On Gitlab, under callback url, I've put: https://sentry.my.domain/auth/sso/ and in sentry.conf.py I have:

GITLAB_APP_ID = "*****"
GITLAB_APP_SECRET = "*****"
GITLAB_BASE_DOMAIN = "git.my.domain"
GITLAB_API_VERSION = 4 
GITLAB_AUTH_SCOPE = "api"
GITLAB_HTTP_SCHEME = "https"

SENTRY_DISALLOWED_IPS = ( 
    '0.0.0.0/8',
    '10.0.0.0/8',
    '100.64.0.0/10',
    '127.0.0.0/8',
    '169.254.0.0/16',
    '172.16.0.0/12',
    '198.18.0.0/15',
    '198.51.100.0/24',
    '224.0.0.0/4',
    '240.0.0.0/4',
    '255.255.255.255/32'
)

Sentry and Gitlab are running on local server. I'm using Sentry 9.0.0 and Gitlab 11.6.3. Any help would be much appreciated.

EDIT: Found the setting under Organization settings > Auth. Just had to enable it, and works fine.

bumbar1 avatar Jan 09 '19 11:01 bumbar1