asp.net - Firefox doesn't show authentication prompt with Windows Authentication -
i'm building intranet asp.net web application organization, , want authenticate users using windows authentication. have 2 wcf webhttpbinding-bound self-hosted services. both use webhttpbinding resthttpbinding configuration.
<webhttpbinding> <binding name="resthttpbinding"> <security mode="transportcredentialonly"> <transport clientcredentialtype="windows"/> </security> </binding> </webhttpbinding>
my services behave correctly (prompts authentication) on chrome, opera , ie (in latter case - if set logon in user authentication in security settings "prompt user name , password"). in firefox can either use this method allow automatic authentication or same result described in this post: 401 unauthorized , blank page.
i've spent hours on googling , trying different options. can't find way make firefox show me prompt.
i checked how it's happening in sharepoint windows authentication used , in firefox prompt appears , turned out, server response in sharepoint comes header
www-authenticate: ntlm
whereas in case got 401 response
www-authenticate: negotiate
so changed app.config file:
<webhttpbinding> <binding name="resthttpbinding"> <security mode="transportcredentialonly"> <transport clientcredentialtype="ntlm"/> </security> </binding> </webhttpbinding>
and prompt appears.
still it's not solution i'm satisfied with: ntlm said downgrading comparing windows authentication.
Comments
Post a Comment