I'm not sure if I understand how Jetspeed handles SSO.  I have created a
portlet that uses the SSOIFramePortlet to display a secure page.  I am able
to get the page to display in the IFrame portlet, however, the user does not
get logged in.

In the administration SSO manager, I've created the site entry.  For the
Site URL field, I included the URL for the login page.  The login page has
two basic fields "username" and "password", that get submitted.  

For example, if I submit a URL similar to the following, the user is logged
in appropriately (note the extra "doLogin" parameter in the URL):

http://server/page?doLogin=true&username=testuser&password=secret

So for the entry, I did the following:

Site Name:  TestSite
Site URL:  http://server/page?doLogin=true
Site Realm:  TestSite Realm
Field for User Id:  username
Field for Password:  password

I then created the principal information for a test user to log into the
remote site.

Portal Principal:  PortalUser
Remote Principal:  testuser
Remote Credential: secret

I've included in the jetspeed-portlet.xml file the following snippet:
        <js:services>
            <js:service name="SSO"/>
        </js:services>

In the portlet.xml, I've defined the following:

        <portlet id="testExternalSite">
        <description>Places an HTML IFrame inside a portlet for easily
hosting other web application within a portlet. Sizes of both normal and
maximized modes are configurable in edit mode.</description>
        <portlet-name>ExternalSite</portlet-name>
        <display-name>External Site</display-name>
       
<portlet-class>org.apache.jetspeed.portlet.SSOIFramePortlet</portlet-class>     
   
        <init-param>
            <name>portlet-icon</name>
            <value>applications-internet.png</value>
        </init-param>        
        <expiration-cache>-1</expiration-cache>
        <supports>
            <mime-type>text/html</mime-type>
            <portlet-mode>VIEW</portlet-mode>
        </supports>
        <supported-locale>en</supported-locale>        
        <portlet-info>
            <title>External Site</title>
            <short-title>External Site</short-title>
            <keywords>iframe,web,frame,content</keywords>
        </portlet-info>
        <portlet-preferences>
            <preference>
                <name>SRC</name>
                <value>http://server/mainpage</value>
            </preference>
            <!-- Don't specify a HEIGHT if you want a normal filled out
layout
            because percentage values result in the content not to be
displayed on IE6.
            Specific values are ok though. 
            -->
            <preference>
                <name>HEIGHT</name>
                <value>800</value>
            </preference>
            <preference>
                <name>WIDTH</name>
                <value>100%</value>
            </preference>
            <preference>
                <name>MAX-WIDTH</name>
                <value>100%</value>
            </preference>
            <preference>
                <name>SCROLLING</name>
                <value>AUTO</value>
            </preference>
            <preference>
                <name>sso.type</name>
                <value>url</value>
            </preference>
        </portlet-preferences>
    </portlet>

When PortalUser logs in to the portal, I see the mainpage of the site in the
IFrame, but the user is not logged in.  I don't see any errors in the log,
but then again, I don't see anything related to SSO in the log.  Can anyone
provide some pointers about how to use the SSOIFramePortlet?

Thanks!
-- 
View this message in context: 
http://www.nabble.com/SSOIFramePortlet-and-Credentials%2C-JS2.0-tf3493725.html#a9758028
Sent from the Jetspeed - User mailing list archive at Nabble.com.


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

Reply via email to