Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Http Basic Authentication using Jersey

Amit Shrivastva
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to Java webservices and trying to write a service which used Http basic auth for authentication with JBoss 6.3 server.
I have used Jersey for this and create a simple service which works well when used with Advance Rest client in chrome.
But when I directly hit the URL in the browser it doesn't show the dialog for username and password. I am not sure what to do so that even with browser the dialog box is shown and user enters the username and password.

Please suggest and code sample that I can run and see what I am missing.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic