Details
Description
Sonar Eclipse should provide credentials for Sonar Server under the hood in order to not bother users by showing login dialog. Currently this dialog appears for a new session and when session expires (can be easily tested by setting "Force user authentication" to "true" in Sonar Server).
For implementation of this feature take a look on org.eclipse.swt.browser.Browser#addAuthenticationListener(AuthenticationListener listener)
Issue Links
- relates to
-
SONAR-2948
Add abilility to configure the web session timeout
-
AuthenticationListener would not work, because Sonar does not return 401 HTTP Unauthorized, but instead provides Login page.
However, if request contains Authorization header, then login will be performed automatically. This header can be passed as following:
But this method available since 3.6.