RE: How to set user principal in setUp()

Nicole Luneburg <[email protected]> Wed, 14 Jan 2009 08:47:30 +1030
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
I'm an idiot I forgot to put the following in my TestMyEJB3ServiceBean clas=
s:

        public void begin(WebRequest theRequest) {
            theRequest.setRedirectorName("ServletRedirectorSecure");
            theRequest.setAuthentication(new BasicAuthentication("testuser"=
, "testpassword"));
        }

Petar, yes you are right it does work.
Now I will go away and read through it all and work out why it works in the=
 example and not in my own application.

Thank you so much for taking the time to get this working.
I'll post back when I find out why it's not working in my app.

Hear from me soon!

Nicole


The contents of this email are confidential and may be subject to legal or =
professional privilege and copyright. No representation is made that this e=
mail is free of viruses or other defects. If you have received this communi=
cation in error, you may not copy or distribute any part of it or otherwise=
 disclose its contents to anyone. Please advise the sender of your incorrec=
t receipt of this correspondence.