jQuery in Action, 3rd edition
The moose likes Oracle/OAS and the fly likes BASIC authenication trouble Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "BASIC authenication trouble" Watch "BASIC authenication trouble" New topic

BASIC authenication trouble

John Eric Hamacher
Ranch Hand

Joined: Apr 25, 2007
Posts: 230

I am trying to set up BASIC authentication on a servlet on OAS I want to constrain every method of access to the servlet. I have created a realm through the Security Providers. Here are my web.xml:


My realm ("codereload") has one role, "codereloadrole" and one user "user1" (password: "pass1") and the user is attached to the role. I get the popup login box when going to the servlet but user1/pass1 does not work. Am I missing some bit of configuration?

John Eric Hamacher
Ranch Hand

Joined: Apr 25, 2007
Posts: 230
I figured out the problem . . . when using a custom realm you must prefix the user with the realm name e.g. codereload/user1. but now I get

BASIC authentication is supposed to be easier than this! Does anybody know what this means?

I agree. Here's the link: http://aspose.com/file-tools
subject: BASIC authenication trouble
It's not a secret anymore!