Hi John, On Mon, Feb 27, 2017 at 10:11 PM, John Logan <[email protected]> wrote: > ...I receive 302 if the curl request includes the user agent, and > 401 otherwise....
AFAIK it's the AuthUtil.isBrowserRequest method [1] that makes this decision. > I don't think this helps for browser AJAX requests, though... You might be able to tweak your request to work around this, based on that source code? Or maybe catch the 302 response and implement the behavior that you need. -Bertrand [1] https://svn.apache.org/repos/asf/sling/trunk/bundles/auth/core/src/main/java/org/apache/sling/auth/core/AuthUtil.java
