sonar-auth-bitbucket | Bitbucket Authentication for SonarQube | REST library
kandi X-RAY | sonar-auth-bitbucket Summary
kandi X-RAY | sonar-auth-bitbucket Summary
Bitbucket Authentication for SonarQube
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- This method is used to authenticate the user
- Request user profile
- Request team teams
- Requests a user s emails
- Initialize the scribe
- Gets the client id
- Is enabled
- Creates a scribe service builder
- Gets the OAuth authorization URL
- Helper method to add a slash to a url
- Returns the web URL
- Define Bitbucket implementation
- List of enabled properties
- Returns whether users should sign up
- Returns whether users to sign up or not
- Get the display of the bitbucket
- Returns the OAuth2 endpoint URL
sonar-auth-bitbucket Key Features
sonar-auth-bitbucket Examples and Code Snippets
Community Discussions
Trending Discussions on sonar-auth-bitbucket
QUESTION
am trying to setup a Bitbucket OAuth consumer for authentication for an application called SonarQube (linting tool). Following the guide, it looks like I have setup everything correctly - https://github.com/SonarSource/sonar-auth-bitbucket.
The callback URL is set to https://myserver/oauth2/callback. When I navigate to it directly, I get "You're not authorized to access this page. Please contact the administrator." - which probably is valid. I don't have any trailing slashes or incorrect scheme.
One thing to note is that I am using an nginx reverse proxy. I did read sometimes this issue surfaces when the headers X-Forwarded-For and X-Forwarded-Proto are set incorrectly. Please note my troubleshooting skills around this is not the greatest but when I use dev tools and navigate to https://myserver/oauth2/callback, I don't see those headers set. However when I run nginx -T | grep proxy_set_header
, it seems to be correct.
ANSWER
Answered 2019-Aug-30 at 18:19This was not proxy related but a configuration issue in SonarQube.
I had originally set sonar.core.serverBaseURL=https://mysonarqube.com
as an environment variable in my docker container which I thought wasn't being applied as when I checked in the UI, it was blank. I then updated the env variable to sonar.core.serverBaseURL=notworking
so I can troubleshoot it/delete it later but it seemed to set that value even though the UI showed the correct value. Once it was updated it worked (as well as all my other auth integrations such as Google and GitHub).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sonar-auth-bitbucket
Restart the SonarQube server
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page