Re: Use of SessionPropagatorAction

2002-12-24 Thread John R. Callahan
Hey Malick!

(We met at the DC XML User's Group last month)...

I am not familiar with the SessionPropagatorAction, but I recommend
that you take a look at the authentication-fw (Authentication framework)
in Cocoon 2.1dev.  Instead of the default authentication handler as found
in the examples, you can use your login.asp service to authenticate users.

Here is an example:

 
 
   
   
 
   
   
 

 
 
   
 
 http://WindowsBox:1010/login.asp?userid={user}&pwd={pwd}"/>
 
 
   
   
 

Mind you, this is just off the top of my head.  You might
still have to worry about URLEncoding issues, etc.  But
you should get the basic idea.  Check out the auth-fw in
the Cocoon samples first.  I made some additional
comments to your email below.

Take care and see you next month...

-- jack

John R. Callahan, Ph.D.
CTO
Sphere Software Corporation (www.sphere.com) - The Intelligence of XML
[EMAIL PROTECTED]
410-480-7301
509-352-1536 (eFax)
410-598-2157 (cell)



- Original Message -
From: "Malick Fall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 18, 2002 7:20 PM
Subject: Use of SessionPropagatorAction


> Hi all,
>
> I am a new Cocoon user trying to build a Web application.
>
> Do you have some examples on how to use your SessionPropagatorAction.
>
> I have an http service responsible for Authenticating my users.
> http://WindowsBox:1010/login.asp
>
> My sitemap looks like this:
>
> 
> 
> 
> 
> 
>  src="http://WindowsBox:1010/login.asp?userid={user}&pwd={pwd}"/>
> 
> 
> 
>
>

This won't work anyway because it is syntactically incorrect.  The map:act
must contain
a complete pipeline (that's a Cocoon pipeline not a map:pipeline) and what
follows the
map:act must also be a complete pipeline (either a redirect-to, read, or
generate-transform(s)-serialize sequence.

> So I send the username and password to the Http service and get XML back
w/
> the user info if the Authentication was successful. Something like
>
> 
> foobar
> ..
> 
>
> Otherwise you get an userinfo element with an error code/message in it
> 
> 123
> Wrong username/password, try again.
> 
>
> At this point I need to store in the session the username, password,
> sessionID and a flag that proves that the authentication was successful.
It
> cannot happen in an XSP because my Authentication service is HTTP, which
> becomes a generator in my sitemap.
>
> After my generator I would like to store /userinfo/userid and
> userinfo/password in the session. So I can check is the user was
> authenticated B4 letting them go through any other pipeline.
>
> I figured SessionPropagatorAction should be the answer, but I cannot
figure
> out where and how to use it.
>
> 
>   
>   
> 
>  
>
> Any help would be greatly appreciated.
>
> Thanks, Cocoon *Really Rocks*
>
> ./Malick.
> [EMAIL PROTECTED]
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Use of SessionPropagatorAction

2002-12-18 Thread Malick Fall
Hi all,

I am a new Cocoon user trying to build a Web application.

Do you have some examples on how to use your SessionPropagatorAction.

I have an http service responsible for Authenticating my users.
http://WindowsBox:1010/login.asp

My sitemap looks like this:






http://WindowsBox:1010/login.asp?userid={user}&pwd={pwd}"/>





So I send the username and password to the Http service and get XML back w/
the user info if the Authentication was successful. Something like


foobar
..


Otherwise you get an userinfo element with an error code/message in it

123
Wrong username/password, try again.


At this point I need to store in the session the username, password,
sessionID and a flag that proves that the authentication was successful. It
cannot happen in an XSP because my Authentication service is HTTP, which
becomes a generator in my sitemap.

After my generator I would like to store /userinfo/userid and
userinfo/password in the session. So I can check is the user was
authenticated B4 letting them go through any other pipeline.

I figured SessionPropagatorAction should be the answer, but I cannot figure
out where and how to use it.


  
  

 

Any help would be greatly appreciated.

Thanks, Cocoon *Really Rocks*

./Malick.
[EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>