Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Must provide a valid url as callback. GitLab does not support OOB #34

Open
avirtual opened this issue Aug 26, 2019 · 1 comment
Open

Comments

@avirtual
Copy link

When clicking on the 'Log in with Gitlab' i am being redirected to https://mysonar/sessions/unauthorized
The logs show 2019.08.26 14:36:32 WARN web[AWzORS4Xd5cSiI5hAAGU][o.s.s.a.AuthenticationError] Fail to initialize authentication with provider 'gitlab' java.lang.IllegalArgumentException: Must provide a valid url as callback. GitLab does not support OOB at com.github.scribejava.core.utils.Preconditions.check(Preconditions.java:73) at com.github.scribejava.core.utils.Preconditions.checkValidUrl(Preconditions.java:51) at com.talanlabs.sonar.plugins.gitlab.auth.GitLabOAuthApi.getAuthorizationUrl(GitLabOAuthApi.java:57)
A gitlab application was configured with the callback set to https://mysonar/oauth2/callback/gitlab
The gitlab plugin in sonar was configured with the correct gitlab url, plus application id and secret given by gitlab.

I am out of ideas and the log doesn't tell me much.

@lexxxel
Copy link

lexxxel commented Apr 28, 2020

I do have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants