Hi,
Sorry for my late response.
In article <[EMAIL PROTECTED]>,
Wed, 30 Apr 2008 09:24:42 -0700,
"Eric Barendt" <[EMAIL PROTECTED]> wrote:
eric> We are using JBoss 4.2.1 with whatever version of Tomcat it comes with. I
eric> just applied your patch to the 1.8.0 code, and it works great!
Thank
ECTED]> wrote:
> > eric> I'm working on switching our application from Basic to Form
> > authentication.
> > [snip]
> > eric> With FormAuthentication, I get "Missing service name parameter
> > eric> [Cactus_Service] in HTTP request." and &q
pplication from Basic to Form
> authentication.
> [snip]
> eric> With FormAuthentication, I get "Missing service name parameter
> eric> [Cactus_Service] in HTTP request." and "Error getting test result.
> This
> eric> could happen for example if you're using a
Hi Eric,
In article <[EMAIL PROTECTED]>,
Tue, 29 Apr 2008 15:28:56 -0700,
"Eric Barendt" <[EMAIL PROTECTED]> wrote:
eric> I'm working on switching our application from Basic to Form
authentication.
[snip]
eric> With FormAuthentication, I get &qu
eb.xml from BASIC to FORM, switched the application, and that
all works fine. Cactus, however, fails when I change the above to:
request.setRedirectorName("ServletRedirectorSecure");
request.setAuthentication(new FormAuthentication("user", "password");
Hi Gabriel,
In article <[EMAIL PROTECTED]>,
Tue, 16 May 2006 17:04:14 -0400,
Gabe <[EMAIL PROTECTED]> wrote:
gabriel> I've been setting up a cactus test to test a web application
gabriel> containers login. My test succeeds until I try a bad login. The
gabriel> F
Sorry, don't user cobertura. Wish I could be of help.
On 5/24/06, Ryan <[EMAIL PROTECTED]> wrote:
Gabe,
I am sorry I can't answer your question. I don't understand why a Try/Catch
wouldn't cath the exception. However, I have a question for you...
Are you using any code coverage tools with y
Gabe,
I am sorry I can't answer your question. I don't understand why a Try/Catch
wouldn't cath the exception. However, I have a question for you...
Are you using any code coverage tools with your test? If so, are you using
Cobertura? If not, need not to respond.
Thanks and sorry,
Ryan
--
Hi,
I've been setting up a cactus test to test a web application
containers login. My test succeeds until I try a bad login. The
FormAuthentication throws a
"org.apache.cactus.util.ChainedRuntimeException: Failed to
authenticate the principal" exception. This is expected behavi
/browse/CACTUS-224
Nicolas,
2005/9/1, David Turley <[EMAIL PROTECTED]>:
Hi, it's me again...
I'm trying to get the FormAuthentication to work. I'm having
problems though. (Of course I'm having problems! Why else would I be
writing!) When I try to run my test, my
x27;s me again...
>
> I'm trying to get the FormAuthentication to work. I'm having
> problems though. (Of course I'm having problems! Why else would I be
> writing!) When I try to run my test, my test fails and tells me it
> couldn't connect to the secured redirecto
Hi, it's me again...
I'm trying to get the FormAuthentication to work. I'm having
problems though. (Of course I'm having problems! Why else would I be
writing!) When I try to run my test, my test fails and tells me it
couldn't connect to the secured redi
SUGURI [mailto:[EMAIL PROTECTED]
Sent: 20 November 2004 07:56
To: [EMAIL PROTECTED]
Subject: Re: FormAuthentication and Error Code 500
Hi Setanta,
Could you post server log?
We need more detail to understand what's going on.
In article <[EMAIL PROTECTED]>,
Thu, 18 Nov 2004 13:25:02 -000
principal name
smathews> is "0" (so authentication must have happened) and no exception is
thrown.
If the purpose of the authentication is to get a principal name,
and you think the FormAuthentication goes worng,
you might try to use the BasicAuthentication for your unit-testin
cted response code
to 500 is dangerous but I can't spend too much more time trying to get my
tests running.
Thanks,
Setanta.
-Original Message-
From: Kazuhito SUGURI [mailto:[EMAIL PROTECTED]
Sent: 18 November 2004 12:18
To: [EMAIL PROTECTED]
Subject: Re: FormAuthentication and Er
eginA(WebRequest theRequest)
smathews> {
smathews> theRequest.setRedirectorName("ServletRedirectorSecure");
smathews> FormAuthentication fa = new FormAuthentication("0",
smathews> "qUqP5cyxm6YcTAhz05Hph5gvu9M=");
smathews> fa.setEx
quest)
{
theRequest.setRedirectorName("ServletRedirectorSecure");
FormAuthentication fa = new FormAuthentication("0",
"qUqP5cyxm6YcTAhz05Hph5gvu9M=");
fa.setExpectedAuthResponse(500);
theRequest.setAuthentication(fa);
}
... guess what? The te
directorSecure");
smathews> FormAuthentication fa = new FormAuthentication("0",
smathews> "qUqP5cyxm6YcTAhz05Hph5gvu9M=");
smathews> theRequest.setAuthentication(fa);
smathews> }
Is the password "qUqP5cyxm6YcTAhz05Hph5gvu9M=" base-64 encoded?
Your sys
Hi All,
I've just started using cactus and I am having a problem getting the
FormAuthentication working properly. I searched the web and mailing lists
already and couldn't find a solution.
My begin method for my test method "A" looks like:
public void beginA(W
|
| An: [EMAIL PROTECTED], [EMAIL PROTECTED]
|
| Kopie:
|
| Thema:Re: Antwort: Re: Secur
Hi,
In article <[EMAIL PROTECTED]>,
Tue, 8 Jun 2004 14:42:53 +0200,
[EMAIL PROTECTED] wrote:
Anton_Grimm> Do you think it is the right place to change the implementation of the
Anton_Grimm> method
Anton_Grimm> getSecureSessionIdCookie()
Anton_Grimm> in FormAuthenticatio
Thanks for your explanations!
As I am not at all familiar with any packet capture tool
I need some help of my collegues. We try this in the late afternoon ...
Do you think it is the right place to change the implementation of the
method
getSecureSessionIdCookie()
in FormAuthentication
Hi,
In article <[EMAIL PROTECTED]>,
Tue, 8 Jun 2004 09:35:31 +0200,
[EMAIL PROTECTED] wrote:
Anton_Grimm> When I run our suite against WebSphere 5.1.0.4 the tests using
Anton_Grimm> FormAuthentication fail reporting
Anton_Grimm>
Anton_Grimm> "Failed to authenticat
We are running our test on the workstation (using WebSphere Studio) against
Tomcat 4.1.29
which works fine even for secured Urls (using FormAuthentication).
When I run our suite against WebSphere 5.1.0.4 the tests using
FormAuthentication fail reporting
"Failed to authenticat
public void beginFormAuthentication(WebRequest theRequest) throws Exception
{
theRequest.setRedirectorName("ServletRedirectorSecure");
theRequest.setAuthentication(new FormAuthentication("root", "senha"));
}
public void testFormAuthentication() throws Excep
Thema:RE: FormAuthentication with
machine name
04/01/15 09:51 PM
Bitte antworten
an "Cactus Users
ilto:[EMAIL PROTECTED]
> Sent: 08 January 2004 11:11
> To: Cactus Users List
> Subject: FormAuthentication with machine name
>
>
>
>
>
> I already asked this question five months ago and did not get any
answer
> ...
>
> There was/is a Bug (17933) with FormAuthentic
On Jan 8, 2004, at 7:05 AM, Vincent Massol wrote:
So the question is - is it possible to combine the following 2
methods?
public void begin(WebRequest request) {
request.setRedirectorName("ServletRedirectorSecure");
request.setAuthentication(new FormAuth
Matt,
> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]
> Sent: 08 January 2004 14:21
> To: Cactus Users List
> Subject: Re: Login once using (FormAuthentication) for all tests in a
> class
>
> > Thinking more about it, I'm not so su
ds?
public void begin(WebRequest request) {
request.setRedirectorName("ServletRedirectorSecure");
request.setAuthentication(new FormAuthentication(
login.getString("username"),
login.getString("encryptedPassword")));
I already asked this question five months ago and did not get any answer
...
There was/is a Bug (17933) with FormAuthentication using not localhost as
the machine name
in the cactus.properties file (cactus.contextURL).
The fix was announced earlier for version 1.6.
Is this already fixed in
Hi Matt,
> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]
> Sent: 08 January 2004 01:21
> To: Cactus Users List
> Subject: Login once using (FormAuthentication) for all tests in a
class
>
> Quick and dirty question:
>
> Is it po
> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]
> Sent: 08 January 2004 01:48
> To: Cactus Users List
> Subject: Re: Login once using (FormAuthentication) for all tests in a
> class
>
> A visual might be better. In my BaseStrutsTestCase class
A visual might be better. In my BaseStrutsTestCase class I have a
login method that is designed so all subclasses can use it.
public void login(WebRequest request) {
request.setRedirectorName("ServletRedirectorSecure");
request.setAuthentication(new FormAuth
Quick and dirty question:
Is it possible to login once (using FormAuthentication) for a class,
rather than adding a beginXXTestName befor every testXXTestName method?
Longer explanation:
I have a number of tests in my ContactActionTest - this test extends
CactusStrutsTestCase, which extends
Has anybody already fixed this bug and would be pleasant enough and support
the source file? Maybe Karthik Guru already did as he mentioned in earlier
messages.
We have configured SingleSignOn-Domain in WebSphere 5.0 and therefore need
to specify a fully qualified domain-name in cactus-propert
L PROTECTED]
> Sent: 01 August 2003 15:11
> To: Cactus Users List
> Subject: Regarding BUG: 17933 (FormAuthentication assumes "localhost"
when
> adding cookies )
>
>
> Hi,
>
> This is regarding the bug listed here.
>
> http://issues.apache.org/bugz
BUG: 17933 (FormAuthentication assumes "localhost"
when adding cookies )
Hi,
This is regarding the bug listed here.
http://issues.apache.org/bugzilla/show_bug.cgi?id=17933
I was trying to fix it .
File: FormAuthentication.java
Method:
public void configure(WebReque
methods /
something that knows how to extract the domain name
properly from the contextURL?
I just want to make sure that i'm doing the right
thing in a right way.
I guess we can also do
webRequest.setURL() when using FormAuthentication;
if that is the case, i guess , I can extract the
domain
karthik Guru wrote:
Thanks Jason!
The machines that run automated builds @ our place are different from
the ones that host the application. Does that mean that i cannot
automate unit testing along with our builds for now? / until the next
cactus release is available? Can someone suggest a wor
:7001/ppo/home.jsp">http://:7001/ppo/home.jsp> it works fine and am able to login.> > thanks> karthik.> > public void login(WebRequest
webRequest){> String userName = getTestParameter(USERNAME_KEY);> String password = getTestParameter(PASSWORD_KE
the application from another machine.
>
> If I do
>
:7001/ppo/home.jsp">http://:7001/ppo/home.jsp
> it works fine and am able to login.
>
> thanks
> karthik.
>
> public void login(WebRequest webRequest){
>String userName = getTestPa
d = getTestParameter(PASSWORD_KEY); FormAuthentication fa = new FormAuthentication(userName, password); webRequest.setRedirectorName("ServletRedirector"); webRequest.setAuthentication(fa); String hostname=System.getProperty("hostName"); String port=System.getProperty("port
It worked just fine. Thanks!
--- Vincent Massol <[EMAIL PROTECTED]> wrote:
> Hi Jason,
>
> I've just added support for your use case in cactus
> 1.5 (in CVS).
>
> Here's how to use it:
>
> public void beginXXX(WebRequest request)
> {
> Form
Hi Jason,
I've just added support for your use case in cactus 1.5 (in CVS).
Here's how to use it:
public void beginXXX(WebRequest request)
{
FormAuthentication auth = new FormAuthentication(username, pwd);
auth.getSecurityRequest().addParameter("ias_request_app
Hi,
I was wondering if anyone knows how to get the
FormAuthentication class to use additional parameters
during it's call to the security check URL in the
authenticate(WebRequest) method?
I am using the iPlanet 6.5 application server and it
adds a few requirements to the standard form-
Hi Jason,
> -Original Message-
> From: Robertson, Jason [mailto:Jason.Robertson@;acs-inc.com]
> Sent: 28 October 2002 20:35
> To: 'Cactus Users List'
> Subject: RE: FormAuthentication
>
> I think this is a good solution. Separate WAR files is the only w
on [mailto:Jason.Robertson@;acs-inc.com]
> Sent: 29 October 2002 15:37
> To: 'Cactus Users List'
> Subject: RE: FormAuthentication
>
> Here's my "SimpleFormLogin" project. This is project source, so look
into
> the build.xml file and adjust the "&quo
002 3:23 AM
To: Cactus Users List
Subject: AW: FormAuthentication
Hi Jason,
I would also be interested in this FormAuthentication Example.
I didn't follow the discussion closely the last couple weeks is it also
possible to test form based login with https?
Regards,
Michael
-Ursprüngliche Nachricht-
Hi Jason,
I would also be interested in this FormAuthentication Example.
I didn't follow the discussion closely the last couple weeks is it also
possible to test form based login with https?
Regards,
Michael
-Ursprüngliche Nachricht-
Von: Robertson, Jason [mailto:Jason.Robertson
bundle it up.
Jason
-Original Message-
From: Vincent Massol [mailto:vmassol@;octo.com]
Sent: Saturday, October 26, 2002 2:12 PM
To: 'Cactus Users List'
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: FormAuthentication
Hi Jason/Pranab,
Thank you both for the good analysis! There ar
[mailto:Pranab.Dhar@;DFA.STATE.NY.US]
Sent: Sunday, October 27, 2002 10:39 PM
To: 'Cactus Users List'
Subject: RE: FormAuthentication
Hi Jason/Vincent,
I checked out the code changes and as expected the first call
gets the JSESSIONID from the Server to proceed with calling the serv
tRedirectorSecure");
theRequest.setAuthentication(new FormAuthentication("admin",
"admin22"));
}
/**
* Method testBasicAuthentication.
*/
public void testBasicAuthentication() {
Hi Jason/Pranab,
Thank you both for the good analysis! There are indeed 2 bugs you have
found:
- one with the FormAuthentication using only the default redirector
- one with the HttpClient fetching the test result using only the
default redirector
I have now fixed (hopefully) both bugs in CVS
S]
Sent: Friday, October 25, 2002 11:17 PM
To: 'Cactus Users List'
Subject: RE: FormAuthentication
Jason,
I found the Redirector change happening at function
(AbstractHttpClient.java)
private WebTestResult callGetResult(
AbstractAuthentication theAuthentication) throws
Maybe cactus guru's will know the answer to this design.
Pranab
-Original Message-
From: Robertson, Jason [mailto:Jason.Robertson@;acs-inc.com]
Sent: Friday, October 25, 2002 6:20 PM
To: 'Cactus Users List'
Subject: RE: FormAuthentication
Yes, you're correct with t
: Friday, October 25, 2002 3:43 PM
To: 'Cactus Users List'
Subject: RE: FormAuthentication
Jason,
Sorry for the typo Error in my last post.it should be
getConfiguration().getContextURL()+"/"+theRequest.getRedirectorName();
I just compiled the code and tested it. I am getting
WebRequest theRequest) {
theRequest.setURL("localhost:8080", "/", "/secure/idsconf",
null, null); <--
theRequest.addCookie( "test", "test" );
theRequest.setRedirectorName("ServletRedirectorSecure"
.Robertson@;acs-inc.com]
Sent: Friday, October 25, 2002 1:47 PM
To: 'Cactus Users List'
Subject: RE: FormAuthentication
I think you've found a problem!
I was unaware that you could change the redirector name in the WebRequest so
I didn't deal with that scenario. If yo
From: Dhar, Pranab [mailto:Pranab.Dhar@;DFA.STATE.NY.US]
Sent: Friday, October 25, 2002 1:32 PM
To: 'Cactus Users List'
Subject: RE: FormAuthentication
Jason,
The servlet mapping in WEB-INF/web.xml is
ServletRedirector
org.apache.cactus.ser
problem in cactus code.
I am setting redirector in the class WebRequest.redirectorName whereas the
FormAuthentication is getting the redirector name from the WebConfiguration
interface
implemented by the ServletConfiguration class which reads the redirector
name from
cactus.properties and used t
;Secure" to you cactus.properties file, but I'd say it would be
better to remove it.)
Let me know if that changes anything.
Jason
-Original Message-
From: Dhar, Pranab [mailto:Pranab.Dhar@;DFA.STATE.NY.US]
Sent: Friday, October 25, 2002 11:47 AM
To: 'Cactus Users List
Users List'
Subject: RE: FormAuthentication
Hi Jason,
Yes Authentication works. I am using JBoss app server.
with user defined security realm/domain where all the users and roles are
mapped
using users.properties and roles.properties.I can run the servlet
straightaway and
I am asked to au
ay, October 25, 2002 11:21 AM
To: 'Cactus Users List'
Subject: RE: FormAuthentication
Buried in the stack trace is "Failed to authenticate the principal". If you
try to log into the website normally using admin/admin does it work?
What server are you using? We have te
ar, Pranab [mailto:Pranab.Dhar@;DFA.STATE.NY.US]
Sent: Friday, October 25, 2002 10:10 AM
To: '[EMAIL PROTECTED]'
Subject: FormAuthentication
Hi,
I am in a situation where I have EJB's and servlets created with security
roles defined.I need to test the Servlets and EJB's doing the authentica
Hi,
I am in a situation where I have EJB's and servlets created with security
roles defined.I need to test the Servlets and EJB's doing the authentication
in the process.I am using FormAuthentication for the secured
jsp/servlets/struts forms and actions.
I installed cactus 1.4.1 and
66 matches
Mail list logo