wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Expected to be challenged at this url, but was not Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Expected to be challenged at this url, but was not" Watch "Expected to be challenged at this url, but was not" New topic
Author

Expected to be challenged at this url, but was not

Thomas Kennedy
Ranch Hand

Joined: Jan 20, 2008
Posts: 137
I have an RSS feed on our Sharepoint server. When I open this feed through a browser, such as Opera, that does not do integrated Windows authentication, I get challenged, type in my credentials and I get in. When using IE, no challenge. So far so good.

My expectation was that when opening the same url through Java I would have to supply an Authenticator subclass, and that this subclass would be enough to handle any challenge. So I did, but I don't get a challenge, or at any rate, none that my Authenticator responds to:



The getPasswordAuthentication() method is never called. Instead, it just goes right in and reads the feed, calls my handler and so on. Can anyone explain why this would be?

You might wonder why I would care about not being challenged if it works anyway. The answer is that this is just when I try it at the command line. When I try it in my IDE I still don't get challenged, but then I get a FileNotFoundException. So I'm first trying to figure out why I'm not getting a challenge.


Costs matter. Justice lies in processes not outcomes. Crime is caused by criminals.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Integrated Windows authentication? I believe that Java has the ability to deal with that, at least as long as the Java code itself is running on a Windows machine. Perhaps that's why your code doesn't have to deal with it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Expected to be challenged at this url, but was not