Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] GitServlet Authentication

Thanks Matthias,

It worked and I published the solution base on the answer you gave me here as I asked it previously there.

On Sat, Apr 18, 2020 at 9:18 PM Matthias Sohn <matthias.sohn@xxxxxxxxx> wrote:
On Sat, Apr 18, 2020 at 5:18 AM Ramin Mehrani <ramin.mehrani@xxxxxxxxx> wrote:
Hi all, 

I am developing a Git Server using JGit. So I extended org.eclipse.jgit.http.server.GitServlet. I can clone the repository but whenever want to push my local repo back to the server git returns the following error: Authentication failed for 'http://localhost:8080/TestRepo/' 
So how can I implement an authentication mechanism for GitServlet to accept credentials? (both on push and clone/fetch operations).

in the same way you would add authentication to another Java web application running
on some servlet container e.g.


Back to the top