Extend LogoutUserAuth
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > Extend LogoutUserAuth




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Extend LogoutUserAuth  
Vincent


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-04-04 12:06 AM

Hi,

I extend the WPS default logout class as below in order to remove all
cookies from HTTP headers. Which properties I need to configure to get it
work. I mean let WPS invoke
my class instead of default one

Thanks

package com.pt;

import javax.servlet.http.*;

import com.ibm.portal.WpsException;
import com.ibm.wps.engine.RunData;



public class LogoutUserAuth extends
com.ibm.wps.engine.commands.LogoutUserAuth {

protected void doPostLogout (RunData aRunData) throws WpsException
{
Cookie all[]=aRunData.getRequest().getCookies();
int cookieCount=all.length;
if (cookieCount>=0){
HttpServletResponse res=aRunData.getResponse();
for (int i=0;i<cookieCount;i++){
Cookie curCookie=all[i];
System.out.print(curCookie.getDomain());
curCookie.setMaxAge(0);
res.addCookie(curCookie);

}
}
super.doPostLogout(aRunData);
}

}








[ Post a follow-up to this message ]



    Re: Extend LogoutUserAuth  
Oliver Meyer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-04-04 12:06 AM

Vincent,
have a look at this link:

http://www-1.ibm.com/support/docvie...tf-8&lang=en+en


Oliver





[ Post a follow-up to this message ]



    Re: Extend LogoutUserAuth  
Bryon Kataoka


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-04-04 12:06 AM

Would you know how to set this up so I can test in WSAD?  Do I need
security enabled?

So far I have updated the ConfigServices and LoaderServices in
C:\Program Files\IBM\WebSphere
 Studio\runtimes\portal_v50\shared\app\co
nfig\services

I put my qualidfied class file in C:\Program Files\IBM\WebSphere
Studio\runtimes\portal_v50\shared\app

I run a test but never see a system out that I have in the code.

Thanks



Oliver Meyer wrote:
> Vincent,
> have a look at this link:
>
> http://www-1.ibm.com/support/docvie...tf-8&lang=en+en
>
>
>
> Oliver






[ Post a follow-up to this message ]



    Re: Extend LogoutUserAuth  
Vincent


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-16-04 12:54 PM

I also follow the same step. But it doesn't work, either.
Did you get it work on non-developing environment?

"Bryon Kataoka" <bkataoka@commercesolutions.com> ???
news:cc49au$b4vs$1@news.boulder.ibm.com ???...
> Would you know how to set this up so I can test in WSAD?  Do I need
> security enabled?
>
> So far I have updated the ConfigServices and LoaderServices in
> C:\Program Files\IBM\WebSphere
>  Studio\runtimes\portal_v50\shared\app\co
nfig\services
>
> I put my qualidfied class file in C:\Program Files\IBM\WebSphere
> Studio\runtimes\portal_v50\shared\app
>
> I run a test but never see a system out that I have in the code.
>
> Thanks
>
>
>
> Oliver Meyer wrote: 
http://www-1.ibm.com/support/docvie...tf-8&lang=en+en[vbcol=seagreen] 
>







[ Post a follow-up to this message ]



    Re: Extend LogoutUserAuth  
Brian Lalor


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-21-04 10:59 PM

Bryon Kataoka wrote:
> Would you know how to set this up so I can test in WSAD?  Do I need
> security enabled?
>
> So far I have updated the ConfigServices and LoaderServices in
> C:\Program Files\IBM\WebSphere
>  Studio\runtimes\portal_v50\shared\app\co
nfig\services
>
> I put my qualidfied class file in C:\Program Files\IBM\WebSphere
> Studio\runtimes\portal_v50\shared\app
>
> I run a test but never see a system out that I have in the code.

I'm not using WSAD, but I found that I had to explicitly add the JAR
containing my custom command to
/path/to/AppServer/config/cells/<cell>/nodes/<node>/libraries.xml.  Add
something like
<classPath>${WPS_HOME}/shared/app/MyJar.jar</classPath>
as the last <classPath/> element in the WPSlib element.

I think that if you don't have security enabled, portal will only work
with LogoutUserNoAuth; you can test your methods by extending the
...NoAuth class instead of the ...Auth class.  That's what I found today
trying to extend LoginUser.





[ Post a follow-up to this message ]



kdevos is offline     Re: Re: Extend LogoutUserAuth  
kdevos


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for kdevos Click here to Send kdevos a Private Message Find more posts by kdevos Add kdevos to your buddy list
 
07-27-04 01:16 PM

quote:
Originally posted by Brian Lalor Bryon Kataoka wrote:[vbcol=seagreen] > Would you know how to set this up so I can test in WSAD? Do I need > security enabled?
Hi, I'm also trying to extend the loginUserNoAuth, but I think it only works wit h loginUserAuth and security enabled, I did several tests but never manged t o extend userLoginNoAuth and get it working




[ Post a follow-up to this message ]



    Re: Extend LogoutUserAuth  
Oliver Meyer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-27-04 11:02 PM

Not true! I just tried to do this without security enabled.
I created a class LoginUserNoAuth that derives from
com.ibm.wps.engine.commands.LoginUserAuth.
I put System.outs in doPreLogin(...) and doAuthenticate(...).
Both System.outs are written to the log file, therefore my classes are
invoked.
I put my classes to <PortalServer>/shared/app/<myPathName> directory.
I also modified LoaderService.properties to look for my command package.
Then I restarted portal server, and this works for me.

Oliver





[ Post a follow-up to this message ]



kdevos is offline     Re: Re: Extend LogoutUserAuth  
kdevos


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for kdevos Click here to Send kdevos a Private Message Find more posts by kdevos Add kdevos to your buddy list
 
07-28-04 01:09 PM

quote:
Originally posted by Oliver Meyer Not true! I just tried to do this without security enabled. I created a class LoginUserNoAuth that derives from com.ibm.wps.engine.commands.LoginUserAuth. I put System.outs in doPreLogin(...) and doAuthenticate(...). Both System.outs are written to the log file, therefore my classes are invoked. I put my classes to <PortalServer>/shared/app/<myPathName> directory. I also modified LoaderService.properties to look for my command package. Then I restarted portal server, and this works for me. Oliver
Sorry what I meant was you can indeed subclass com.ibm.wps.engine.commands.L oginUserAuth but i never managed to subclass com.ibm.wps.engine.commands.Log inUserNoAuth and get it working




[ Post a follow-up to this message ]



    Re: Extend LogoutUserAuth  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-06-05 07:56 AM

Hi,
I want to extend the LogoutUserAuth ...
How will i do this ..?
For com.ibm.portal.WpsException ...wht jar i need to add ?
From where will i get that jar?
I want the step by step information.Please let me know.

Thanx
kalyani






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:52 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register