Thanks,
Soren
--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss
---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.
> You don't get a prompt for Negotiate
In other browsers, you mean, right?
I tried https://ipa.demo1.freeipa.org/ipa/ui/ (or directly, https://ipa.demo1.freeipa.org/ipa/session/login_kerberos) and only Chrome indeed prompted. I am not sure what the right behavior should be. I added net-dev to the thread, they might know more.
☆PhistucKOn Sat, May 21, 2016 at 11:16 PM, dreijer <dreij...@gmail.com> wrote:You don't get a prompt for Negotiate; the browser just does the Kerberos dance behind the scenes as long as the target site is trusted, which is what I want. If Kerberos cannot be performed, I want to silently fall back to regular forms-based auth rather than have the browser display an ugly prompt I have no control over.
On Saturday, May 21, 2016 at 12:18:48 PM UTC-7, PhistucK wrote:Sorry for my ignorance - what is the graphical user interface difference between an NTLM prompt versus a Negotiate prompt?☆PhistucKOn Sat, May 21, 2016 at 9:59 PM, dreijer <dreij...@gmail.com> wrote:Hi there,
I'm working on a web app that for authentication prefers Integrated Windows Authentication (Kerberos), and if that fails, falls back to regular forms-based auth. In order for the browser to send a Kerberos ticket, the site has to be in the Intranet zone on Windows.
In both Internet Explorer and Firefox, if I send an Ajax request to an endpoint that returns a 401 with a 'WWW-Authenticate: Negotiate' header and that endpoint isn't in the Intranet zone, the browser won't even attempt to authenticate the user and thus won't display an NTLM prompt window. In other words, the browser just swallows the 401 response since it cannot do Negotiate.
Chrome, on the other hand, shows an NTLM popup window once it receives the 401 from the server. Thus, I have the following questions:
- Is this really the desired behavior in Chromium? The web service explicitly said it only wanted Negotiate (not NTLM), so why does the browser attempt NTLM?
- If the behavior isn't about to be changed, I'm wondering if there's a way for me to detect that the IWA endpoint is in the Intranet zone before I make the initial request to the IWA endpoint. For instance, I know that IE keeps the different zones isolated (e.g. separate cookie jars), which means I could send a request to the IWA endpoint, have it set a cookie and then try send that cookie to a different sub-domain. If the browser doesn't send the cookie along, then I can make a pretty good guess that the two sites are in different zones. Based on my tests, this is not the behavior in Chrome and I've been unable to dig up any information on what behavior Chrome has for trusted sites vs regular sites (I haven't looked at the code yet). Does anybody know what restrictions are removed when a site is trusted in Chromium?
--Thanks,
Soren
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss
---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.
--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss
---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.
--
You received this message because you are subscribed to the Google Groups "net-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to net-dev+u...@chromium.org.
To post to this group, send email to net...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/net-dev/CABc02_LDjM5RnX1FbrPbDu0rP2SdxGBU1DTWp%3DjxNKjmve_yjg%40mail.gmail.com.
On Sun, May 22, 2016 at 6:52 AM, PhistucK <phis...@gmail.com> wrote:> You don't get a prompt for Negotiate
In other browsers, you mean, right?I tried https://ipa.demo1.freeipa.org/ipa/ui/ (or directly, https://ipa.demo1.freeipa.org/ipa/session/login_kerberos) and only Chrome indeed prompted. I am not sure what the right behavior should be. I added net-dev to the thread, they might know more.FWIW, I tried these URLs on IE and saw the same prompting behavior as Chrome.
- If the behavior isn't about to be changed, I'm wondering if there's a way for me to detect that the IWA endpoint is in the Intranet zone before I make the initial request to the IWA endpoint. For instance, I know that IE keeps the different zones isolated (e.g. separate cookie jars), which means I could send a request to the IWA endpoint, have it set a cookie and then try send that cookie to a different sub-domain. If the browser doesn't send the cookie along, then I can make a pretty good guess that the two sites are in different zones. Based on my tests, this is not the behavior in Chrome and I've been unable to dig up any information on what behavior Chrome has for trusted sites vs regular sites (I haven't looked at the code yet). Does anybody know what restrictions are removed when a site is trusted in Chromium?
Chrome only looks at IE security zones to determine whether ambient credentials can be used against a target, and only when there's no explicit whitelist of targets. There should be no other observable side-effects.For completeness, IE security zones are also considered when handling a download. But that's not relevant here.The test you describe above won't always work even for IE. The credentials use policy for a specific IE security zone can be changed by the user or by group policy. In the case of Chrome, the zone is irrelevant if there's an explicit whitelist.You want to find out whether the user can authenticate against a specific protection space without prompting. Unfortunately, HTTP doesn't provide a way to discover this. You could sniff it out using other observable side-effects. For example, a cross origin image load on Chrome doesn't show a prompt and fails the request if any prompting is required. But such techniques are fragile and unsupported.