File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes Why the 401 exception after authenticating? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "Why the 401 exception after authenticating?" Watch "Why the 401 exception after authenticating?" New topic
Author

Why the 401 exception after authenticating?

Thomas Kennedy
Ranch Hand

Joined: Jan 20, 2008
Posts: 90
I can authenticate to Sharepoint OK -- at least, I don't get any exception when doing so -- but when I try to read a url from the site I get a 401 exception. What could be the problem?

I believe Sharepoint is using Kerberos.



Costs matter. Justice lies in processes not outcomes. Crime is caused by criminals.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 32421
Are the pertinent methods in sprsscallbackhandler ever called?


Android appsImageJ pluginsJava web charts
Thomas Kennedy
Ranch Hand

Joined: Jan 20, 2008
Posts: 90
No they weren't. Any this is now fixed. There was something wrong with my url string, though I do not now remember what it was.
Thomas Kennedy
Ranch Hand

Joined: Jan 20, 2008
Posts: 90
Also I stopped using LoginContext and went back to trying Authenticator alone -- that worked. I'm not so clear on the differences between the two.
 
 
subject: Why the 401 exception after authenticating?
 
MyEclipse, The Clear Choice