Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows authentication doesn't work #780

Open
marko033 opened this issue Jan 29, 2018 · 9 comments
Open

windows authentication doesn't work #780

marko033 opened this issue Jan 29, 2018 · 9 comments

Comments

@marko033
Copy link

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
Copy link
Contributor

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

@marko033
Copy link
Author

marko033 commented Feb 2, 2018

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

@CatStarwind
Copy link
Contributor

CatStarwind commented Feb 2, 2018

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
Copy link
Author

marko033 commented Feb 7, 2018

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
Copy link
Contributor

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
Copy link
Author

marko033 commented Feb 8, 2018

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
Copy link

mu88 commented Feb 22, 2018

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

@LarsOAndersen
Copy link

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
Copy link

ChrisSorel commented Oct 17, 2018

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.d__b.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.d__8.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.d__5.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.AuthenticationMiddleware1.<Invoke>d__0.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.AuthenticationMiddleware1.d__0.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.d__5.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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants