File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Expected to be challenged at this url, but was not

 
Thomas Kennedy
Ranch Hand
Posts: 137
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Paul Clapham
Sheriff
Pie
Posts: 20161
24
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic