jenkins-gitlab-merge-request-builder-plugin icon indicating copy to clipboard operation
jenkins-gitlab-merge-request-builder-plugin copied to clipboard

simple authentication support

Open shawn-sterling opened this issue 12 years ago • 4 comments

Hello, our gitlab server is setup with simple http auth.

I am attempting to use this plugin via the https://username:password@url option, which causes a stack trace. Is there a different way I should try?

Thanks for your time.

-Shawn

shawn-sterling avatar Sep 02 '13 07:09 shawn-sterling

Hi Shawn!

Can you elaborate a little bit more on your setup? What version of Gitlab are you using? Currently, the plugin hasn't been tested against basic auth so I'm not sure that it'll work out of the box.

timols avatar Sep 03 '13 01:09 timols

Hi Tim, thank you for the response.

We are using nginx basic authentication:

        auth_basic      "Restricted";
        auth_basic_user_file    htpasswd.users;

or if apache:

    AuthName "Restricted"
    AuthType Basic
    AuthUserFile /some/dir/htpasswd.users
    Require valid-user

The gitlab version is 5.2.1 (26ed59f).

The plugin doesn't currently work with basic auth and causes the above linked stack trace, but I am happy to be a guinea pig if it is something you are willing to add support for. This could be an extra setup option somewhere in the plugin, or perhaps the 'https://username:password@host:port/path' may work?

Have a good day.

-Shawn

shawn-sterling avatar Sep 03 '13 17:09 shawn-sterling

Hi @shawn-sterling - apologies for missing your response to this issue!

Is this still an issue for you? We should be able to support basic auth.

timols avatar Dec 18 '13 03:12 timols

Hi Tim, yes it is still an issue.

Take it easy.

-Shawn

shawn-sterling avatar Dec 18 '13 06:12 shawn-sterling