Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Auth for raw contents of repo

George Miller July 18, 2017

Running own instance of Bitbucket Server.

I'm using grails and maven and would like to be able to fetch a file from repo as a grails dependency.

Rrails needs to be able to reach the raw contents (not JSON I can get through API) by either basic auth or ssh. I can only seem to get the git through SSH.

Is this possible?  I can se raw contents if I log in through the browser UI using "raw " in the url, but remote auth for raw doesn't seem to work.

 

1 answer

1 vote
Julius Davies [bit-booster.com]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 18, 2017

I use the free "Token Authenticator" add-on for this kind of stuff.

As long as you are able to set the "X-Auth-Token" and "X-Auth-User" HTTP headers for the HTTP requests, it should work nicely!

(Note:  you must specify BOTH headers -- I always forget that and really confuse myself.)

George Miller July 20, 2017

Thanks. I'll see if grails has a way to config the headers.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events