jakubgarfield / Bonobo-Git-Server

Bonobo Git Server for Windows is a web application you can install on your IIS and easily manage and connect to your git repositories. Go to homepage for release and more info.
http://bonobogitserver.com
MIT License
1.81k stars 603 forks source link

windows authentication doesn't work #780

Open marko033 opened 6 years ago

marko033 commented 6 years ago

Hi, I have a problem with Windows authentication. i was using 6.2.1 everything was ok. I made upgrade to 6.3.0 and I start have problem with Windows authentication. When I go to Bonobo-Git-Server site browser ask Username and Password. I use my username and password but it is bad and ask again and again. Where can by a problem? Should I set up something on IIS ?

Thak You.

CatStarwind commented 6 years ago

The best thing to do right now is to rollback to 6.2.1 as it is a known issue. #775 #743

marko033 commented 6 years ago

I was trying but I have this problem now also on 6.2.1.

CatStarwind commented 6 years ago

I updated my PR #763 to try to fix this. In the mean time you can try seeing if replacing /Logon/ with /WindowsLogin/ works.

marko033 commented 6 years ago

I tried but did not help. Can I have some bad settings on IIS? Is there some addition setting for Windows Authentication for IIS?

CatStarwind commented 6 years ago

Make sure the only Authentication enabled is Anonymous Authentication in IIS. (from the website: https://bonobogitserver.com/resources/img/installation/iis_authentication_forms.png)

You might also want to check that you have Basic and Windows Authentication installed.

marko033 commented 6 years ago

Yes I have only Anonymous Authentication enabled. How I wrote it is work on 6.2.1 version then I upgrade to 6.3.0 then stop Windows Authentication work. Ok I have backup previous working version so I restore it but it did not help. Windows Authentication still not working.

mu88 commented 6 years ago

I have exactly the same issue, but changing the resource /Logon/ to /WindowsLogin/ works. It is a workaround, but at least it works

LarsOAndersen commented 6 years ago

Hi. i am using 6.3 and when i use windows authentication, it actual look my credentials up. but when it is done checking it just clears the forms and does not login. somehow it cannot find out to login with administrative rights ?? any suggestions.

ChrisSorel commented 6 years ago

Having this same issue. Is there any fix?

Edit. Tried going to /Home/WindowsLogin and get the following error in the log Edit 2: Added returnUrl to the url string and got the windows prompt but auth doesn't ever work. It just keeps prompting for creds over and over again.

System.ArgumentNullException: Value cannot be null. Parameter name: RedirectUri at Bonobo.Git.Server.Owin.Windows.WindowsAuthenticationHandler.ApplyResponseChallengeAsync() at Microsoft.Owin.Security.Infrastructure.AuthenticationHandler.db.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Owin.Security.Infrastructure.AuthenticationHandler.d8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Owin.Security.Infrastructure.AuthenticationHandler.d5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Owin.Security.Infrastructure.AuthenticationMiddleware`1.d0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Owin.Security.Infrastructure.AuthenticationMiddleware`1.d0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.d5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.StageAsyncResult.End(IAsyncResult ar) at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)