Re: FormAuthentication problem

2008-05-09 Thread Kazuhito SUGURI
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

Re: FormAuthentication problem

2008-05-03 Thread Petar Tahchiev
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

Re: FormAuthentication problem

2008-04-30 Thread Eric Barendt
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

Re: FormAuthentication problem

2008-04-29 Thread Kazuhito SUGURI
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

FormAuthentication problem

2008-04-29 Thread Eric Barendt
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");

Re: negative testing with FormAuthentication

2006-06-05 Thread Kazuhito SUGURI
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

Re: negative testing with FormAuthentication

2006-05-24 Thread Gabe
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

Re: negative testing with FormAuthentication

2006-05-24 Thread Ryan
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 --

negative testing with FormAuthentication

2006-05-16 Thread Gabe
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

Re: FormAuthentication

2005-09-02 Thread David Turley
/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

Re: FormAuthentication

2005-09-02 Thread Nicolas Chalumeau
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

FormAuthentication

2005-09-01 Thread David Turley
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

RE: FormAuthentication and Error Code 500

2004-11-22 Thread Setanta Mathews
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

Re: FormAuthentication and Error Code 500

2004-11-19 Thread Kazuhito SUGURI
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

RE: FormAuthentication and Error Code 500

2004-11-18 Thread Setanta Mathews
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

Re: FormAuthentication and Error Code 500

2004-11-18 Thread Kazuhito SUGURI
eginA(WebRequest theRequest) smathews> { smathews> theRequest.setRedirectorName("ServletRedirectorSecure"); smathews> FormAuthentication fa = new FormAuthentication("0", smathews> "qUqP5cyxm6YcTAhz05Hph5gvu9M="); smathews> fa.setEx

RE: FormAuthentication and Error Code 500

2004-11-18 Thread Setanta Mathews
quest) { theRequest.setRedirectorName("ServletRedirectorSecure"); FormAuthentication fa = new FormAuthentication("0", "qUqP5cyxm6YcTAhz05Hph5gvu9M="); fa.setExpectedAuthResponse(500); theRequest.setAuthentication(fa); } ... guess what? The te

Re: FormAuthentication and Error Code 500

2004-11-18 Thread Kazuhito SUGURI
directorSecure"); smathews> FormAuthentication fa = new FormAuthentication("0", smathews> "qUqP5cyxm6YcTAhz05Hph5gvu9M="); smathews> theRequest.setAuthentication(fa); smathews> } Is the password "qUqP5cyxm6YcTAhz05Hph5gvu9M=" base-64 encoded? Your sys

FormAuthentication and Error Code 500

2004-11-18 Thread Setanta Mathews
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

Antwort: Re: Antwort: Re: Security (using FormAuthentication) not working against WebSphere 5.1

2004-06-09 Thread Anton_Grimm
| | An: [EMAIL PROTECTED], [EMAIL PROTECTED] | | Kopie: | | Thema:Re: Antwort: Re: Secur

Re: Antwort: Re: Security (using FormAuthentication) not working against WebSphere 5.1

2004-06-08 Thread Kazuhito SUGURI
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

Antwort: Re: Security (using FormAuthentication) not working against WebSphere 5.1

2004-06-08 Thread Anton_Grimm
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

Re: Security (using FormAuthentication) not working against WebSphere 5.1

2004-06-08 Thread Kazuhito SUGURI
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

Security (using FormAuthentication) not working against WebSphere 5.1

2004-06-08 Thread Anton_Grimm
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

FormAuthentication error

2004-01-28 Thread icaro
public void beginFormAuthentication(WebRequest theRequest) throws Exception { theRequest.setRedirectorName("ServletRedirectorSecure"); theRequest.setAuthentication(new FormAuthentication("root", "senha")); } public void testFormAuthentication() throws Excep

Antwort: RE: FormAuthentication with machine name

2004-01-16 Thread Anton_Grimm
Thema:RE: FormAuthentication with machine name 04/01/15 09:51 PM Bitte antworten an "Cactus Users

RE: FormAuthentication with machine name

2004-01-15 Thread Vincent Massol
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

Re: Login once using (FormAuthentication) for all tests in a class

2004-01-08 Thread Matt Raible
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

RE: Login once using (FormAuthentication) for all tests in a class

2004-01-08 Thread Vincent Massol
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

Re: Login once using (FormAuthentication) for all tests in a class

2004-01-08 Thread Matt Raible
ds? public void begin(WebRequest request) { request.setRedirectorName("ServletRedirectorSecure"); request.setAuthentication(new FormAuthentication( login.getString("username"), login.getString("encryptedPassword")));

FormAuthentication with machine name

2004-01-08 Thread Anton_Grimm
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

RE: Login once using (FormAuthentication) for all tests in a class

2004-01-08 Thread Vincent Massol
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

RE: Login once using (FormAuthentication) for all tests in a class

2004-01-08 Thread Vincent Massol
> -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

Re: Login once using (FormAuthentication) for all tests in a class

2004-01-07 Thread Matt Raible
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

Login once using (FormAuthentication) for all tests in a class

2004-01-07 Thread Matt Raible
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

Bug17933: FormAuthentication with machine name

2003-09-19 Thread Anton_Grimm
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

RE: Regarding BUG: 17933 (FormAuthentication assumes "localhost" when adding cookies )

2003-08-06 Thread Vincent Massol
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

RE: Regarding BUG: 17933 (FormAuthentication assumes "localhost" when adding cookies )

2003-08-01 Thread Sachin
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

Regarding BUG: 17933 (FormAuthentication assumes "localhost" when adding cookies )

2003-08-01 Thread karthik Guru
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

Re: Error when using machine name instead of "localhost" with FormAuthentication

2003-06-26 Thread Christopher Lenz
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

Re: Error when using machine name instead of "localhost" with FormAuthentication

2003-06-26 Thread karthik Guru
: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

Re: Error when using machine name instead of "localhost" with FormAuthentication

2003-06-26 Thread Jason Arndt
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

Error when using machine name instead of "localhost" with FormAuthentication

2003-06-26 Thread karthik Guru
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

RE: add POST parameters to the FormAuthentication security check URL request

2003-03-10 Thread Jason Arndt
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

RE: add POST parameters to the FormAuthentication security check URL request

2003-03-08 Thread Vincent Massol
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

add POST parameters to the FormAuthentication security check URL request

2003-03-07 Thread Jason Arndt
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-

RE: FormAuthentication

2002-10-31 Thread Vincent Massol
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

RE: FormAuthentication

2002-10-31 Thread Vincent Massol
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

RE: FormAuthentication

2002-10-29 Thread Robertson, Jason
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-

AW: FormAuthentication

2002-10-29 Thread Koegel, Michael
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

RE: FormAuthentication

2002-10-28 Thread Robertson, Jason
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

RE: FormAuthentication

2002-10-28 Thread Dhar, Pranab
[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

RE: FormAuthentication

2002-10-27 Thread Dhar, Pranab
tRedirectorSecure"); theRequest.setAuthentication(new FormAuthentication("admin", "admin22")); } /** * Method testBasicAuthentication. */ public void testBasicAuthentication() {

RE: FormAuthentication

2002-10-26 Thread Vincent Massol
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

RE: FormAuthentication

2002-10-26 Thread Robertson, Jason
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

RE: FormAuthentication

2002-10-25 Thread Dhar, Pranab
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

RE: FormAuthentication

2002-10-25 Thread Robertson, Jason
: 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

RE: FormAuthentication

2002-10-25 Thread Dhar, Pranab
WebRequest theRequest) { theRequest.setURL("localhost:8080", "/", "/secure/idsconf", null, null); <-- theRequest.addCookie( "test", "test" ); theRequest.setRedirectorName("ServletRedirectorSecure"

RE: FormAuthentication

2002-10-25 Thread Dhar, Pranab
.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

RE: FormAuthentication

2002-10-25 Thread Robertson, Jason
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

RE: FormAuthentication

2002-10-25 Thread Dhar, Pranab
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

RE: FormAuthentication

2002-10-25 Thread Robertson, Jason
;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&#x

RE: FormAuthentication

2002-10-25 Thread Dhar, Pranab
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

RE: FormAuthentication

2002-10-25 Thread Dhar, Pranab
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

RE: FormAuthentication

2002-10-25 Thread Robertson, Jason
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

FormAuthentication

2002-10-25 Thread Dhar, Pranab
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