portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David G. Powers" <jetspeed-...@pssp.com>
Subject proposed patch - HTTP Basic Autentication for WebPagePortlet
Date Thu, 28 Mar 2002 03:06:26 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'd like to make a small contribution to Jetspeed.

The attached patch enables the WebPagePortlet to display pages which 
require HTTP Basic Authentication.

Please review the proposed patch, apply, and test it.  Also, please post 
any comments or propose enhancements that might make it worthy of 
acceptance.

Thanks,

DP

============================================================
Changed Class:
============================================================
org.apache.jetspeed.portal.portlets.WebPagePortlet

WebPagePortlet now recognized two new <portlet-entry> parameters
- - username
- - password

The username and password are used to construct an HTTP Basic 
Authentication header which is used by the WebPagePortlet to access 
"secured" content.


============================================================
New Class:
============================================================
org.apache.jetspeed.util.Base64

Excerpt from RFC 2617 (http://www.faqs.org/rfcs/rfc2617.html)
To receive authorization, the client sends the userid and password, 
separated by a single colon (":") character, within a base64 encoded string 
in the credentials.




- -- 
David G. Powers
PowerSource
-----BEGIN PGP SIGNATURE-----
Comment: Verify the authenticity of this message with the public key available at http://pssp.com/dgp_pk.asc

iD8DBQE8ooi1jmjAPDT0/nERAvXxAJ9cthkMTQHNBgVrbOD83KehyngDSgCgqQck
jhxsk10yKMySqNFAjQ08WBU=
=bzP4
-----END PGP SIGNATURE-----

Mime
View raw message