I am actually working on a portlet to do this. I would be happy to combine
efforts. I started with the FileWatchPortlet.java, then modified it as
follows:

1)Read the parameters to get the userid and password labels (does the site
expect username=, userid=,...) I considered optionally defining
default-userid/passwd values for non-logged in users (useful for a shared
calendar or similar) but chose to save this feature until later.
2)Read from RunData the logged-in user's id and password :
    ...
    PortletConfig config = this.getPortletConfig();
    RunData rundata = config.getRunData();
    String userid = rundata.getUser().getUserName();
    String passwd = rundata.getUser().getPassword();
    ...
3)POST the id and password to the content provider (Does not use the cache,
connects directly to the URL)
4) return the result

I have completed coding the portlet but I am not able to test it -
unfortunately, things have changed since I last understood how to add
content - do you know how to add a content provider's URL? Do I define the
provider in PortletRegistry.psml, jetspeed/jcfg, or both (I cannot find docs
on the use of the .jcfg file)? I modified both these files plus the
default.psml - sometimes the portlet displays, sometimes it does not. I also
modified the .properties file to recognize it as a content-feed (I
eventually updated everything that has a URL defined in it :) ). I have not
found a pattern as to when it does or does not display, and there are no
errors in any .log's. I'll let you know if I get anywhere with it.

Steve B.

----- Original Message -----
From: "Craig Berry" <[EMAIL PROTECTED]>
To: "'JetSpeed'" <[EMAIL PROTECTED]>
Sent: Tuesday, October 24, 2000 1:33 PM
Subject: RE: portlet - security proxy?


> The username and password used to login are available in the
> User object, which can be obtained from RunData.  How you in
> turn use these to obtain access to a remote app is a problem
> in Java network programming inside your portlet.
>
> -----Original Message-----
> From: Ivanova, Jordanka [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 24, 2000 12:58 PM
> To: 'JetSpeed'
> Subject: portlet - security proxy?
>
> I am looking for information on how portlet can
> authenticate user for remote service using
> the same credentials that he/she logged with
> in the portal. Like a portlet that connects to
> email/web space site and retrieves the data
> given the password and id are identical with
> the portal's. If you have any links or info please
> email. Thanks,
> Dannie
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to