• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Authentication error code

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

When I access a url that needs authentication, I get a 401 with a realm info where I five my username and password. Now if I happen to enter it wrongly what would I get as response? Another 401? or 403?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After authentication, the request will be rejected and you'll get a 403.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good, now one more question would be that authorization always happens after authentication....Is this statement true or false?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you need to be authenticated before being authorized. The container cannot know if you are authorized or not, unless he knows your credentials.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Satou for the confirmation!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic