portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randy Watler (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Commented: (JS2-1101) OpenID Login Support
Date Sun, 07 Feb 2010 05:10:28 GMT

    [ https://issues.apache.org/jira/browse/JS2-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830650#action_12830650
] 

Randy Watler commented on JS2-1101:
-----------------------------------

Configuration:

j2-admin portal.xml:
---------------------------------------------------

  <portlet id="OpenIDLoginPortlet">
    <description>
      Logs a user on to the Jetspeed portal using an OpenID Provider
      and a built in Relaying Party servlet implmentation. Copies 
      and maintains user information in Jetspeed user data on login.
    </description>
    <portlet-name>OpenIDLoginPortlet</portlet-name>
    <display-name>OpenID Login Portlet</display-name>
    <portlet-class>org.apache.jetspeed.portlets.openid.OpenIDLoginPortlet</portlet-class>
    <init-param>
      <name>ViewPage</name>
      <value>/WEB-INF/security/login/openid-login.jsp</value>
    </init-param>
    <init-param>
      <name>EditPage</name>
      <value>/WEB-INF/security/login/openid-login-prefs.jsp</value>
    </init-param>
    <init-param>
      <description>Enable portlet init parameter registration configuration.</description>
      <name>enableRegistrationConfig</name>
      <value>false</value>
    </init-param>
    <init-param>
      <description>Global enable new user registration.</description>
      <name>enableRegistration</name>
      <value>true</value>
    </init-param>
    <init-param>
      <description>Global new user template directory to be used for registration.</description>
      <name>newUserTemplateDirectory</name>
      <value>/_template/new-user/</value>
    </init-param>
    <init-param>
      <description>Global subsite root folder to be used for registration.</description>
      <name>subsiteRootFolder</name>
      <value></value>
    </init-param>
    <init-param>
      <description>Global roles to be assigned at registration.</description>
      <name>roles</name>
      <value>user</value>
    </init-param>
    <init-param>
      <description>Global groups to be assigned at registration.</description>
      <name>groups</name>
      <value></value>
    </init-param>
    <init-param>
      <description>Global profiling rule names to be assigned at registration.</description>
      <name>rulesNames</name>
      <value>page</value>
    </init-param>
    <init-param>
      <description>Global profiling rule values to be assigned at registration.</description>
      <name>rulesValues</name>
      <value>j2</value>
    </init-param>
    <init-param>
      <name>portlet-icon</name>
      <value>system-lock-screen.png</value>
    </init-param>
    <expiration-cache>0</expiration-cache>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>VIEW</portlet-mode>
      <portlet-mode>edit_defaults</portlet-mode>
    </supports>
    <resource-bundle>org.apache.jetspeed.portlets.security.resources.OpenIDLoginResources</resource-bundle>
    <portlet-preferences>
      <!-- Enable portlet preferences registration configuration. -->
      <preference>
        <name>enableRegistrationConfig</name>
        <value>false</value>
      </preference>
      <!-- New user registration. -->
      <preference>
        <name>enableRegistration</name>
        <value>true</value>
      </preference>
      <!-- New user template directory to be used for registration. -->
      <preference>
        <name>newUserTemplateDirectory</name>
        <value>/_template/new-user/</value>
      </preference>
      <!-- Subsite root folder to be used for registration. -->
      <preference>
        <name>subsiteRootFolder</name>
        <value></value>
      </preference>
      <!-- Roles to be assigned at registration. -->
      <preference>
        <name>roles</name>
        <value>user</value>
      </preference>
      <!-- Groups to be assigned at registration. -->
      <preference>
        <name>groups</name>
        <value></value>
      </preference>
      <!-- Profiling rule names to be assigned at registration. -->
      <preference>
        <name>rulesNames</name>
        <value>page</value>
      </preference>
      <!-- Profiling rule values to be assigned at registration. -->
      <preference>
        <name>rulesValues</name>
        <value>j2</value>
      </preference>
    </portlet-preferences>
    <portlet-info>
      <title>OpenID Login</title>
      <short-title>OpenID Login</short-title>
      <keywords>openid,login,security,management,admin</keywords>
    </portlet-info>
  </portlet>

j2-admin jetspeed-portal.xml:
---------------------------------------------------

    <portlet>
        <portlet-name>OpenIDLoginPortlet</portlet-name>
        <js:security-constraint-ref>public-view</js:security-constraint-ref> 
     
        <dc:title>OpenID Login Portlet</dc:title>
        <dc:creator>J2 Team</dc:creator>
    </portlet>

PSML: default-page.psml:
---------------------------------------------------

    <fragment id="dp-12" type="portlet" name="j2-admin::OpenIDLoginPortlet">
      <property layout="TwoColumns" name="row" value="5" />
      <property layout="TwoColumns" name="column" value="1" />
    </fragment>                                

portal web.xml:
---------------------------------------------------

  <filter>
    <filter-name>OpenIDPortalFilter</filter-name>
    <filter-class>org.apache.jetspeed.openid.filter.OpenIDPortalFilter</filter-class>
  </filter>

  <filter-mapping>
    <filter-name>OpenIDPortalFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

  <servlet>
    <description>
      OpenID Relaying Party, (RP), servlet used to return discovery
      metadata at OpenID realm and to process authentication return
      requests.
    </description>
    <display-name>OpenID Relaying Party Servlet</display-name>
    <servlet-name>OpenIDRelayingPartyServlet</servlet-name>
    <servlet-class>org.apache.jetspeed.openid.OpenIDRelayingPartyServlet</servlet-class>
    <init-param>
      <description>Discovery domain to URL mapping.</description>
      <param-name>discovery.gmail.com</param-name>
      <param-value>https://www.google.com/accounts/o8/id</param-value>
    </init-param>
    <init-param>
      <description>Discovery domain to URL mapping.</description>
      <param-name>discovery.yahoo.com</param-name>
      <param-value>http://yahoo.com</param-value>
    </init-param>
    <init-param>
      <description>Discovery domain to URL mapping.</description>
      <param-name>discovery.myopenid.com</param-name>
      <param-value>http://myopenid.com</param-value>
    </init-param>
    <init-param>
      <description>Enable servlet init parameter registration configuration.</description>
      <param-name>enableRegistrationConfig</param-name>
      <param-value>false</param-value>
    </init-param>
    <init-param>
      <description>Enable new user registration.</description>
      <param-name>enableRegistration</param-name>
      <param-value>true</param-value>
    </init-param>
    <init-param>
      <description>Global new user template directory to be used for registration.</description>
      <param-name>newUserTemplateDirectory</param-name>
      <param-value>/_template/new-user/</param-value>
    </init-param>
    <init-param>
      <description>Global subsite root folder to be used for registration.</description>
      <param-name>subsiteRootFolder</param-name>
      <param-value></param-value>
    </init-param>
    <init-param>
      <description>Global roles to be assigned at registration.</description>
      <param-name>roles</param-name>
      <param-value>user</param-value>
    </init-param>
    <init-param>
      <description>Global groups to be assigned at registration.</description>
      <param-name>groups</param-name>
      <param-value></param-value>
    </init-param>
    <init-param>
      <description>Global profiling rule names to be assigned at registration.</description>
      <param-name>rulesNames</param-name>
      <param-value>page</param-value>
    </init-param>
    <init-param>
      <description>Global profiling rule values to be assigned at registration.</description>
      <param-name>rulesValues</param-name>
      <param-value>j2</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
  </servlet>

  <servlet-mapping>
    <servlet-name>OpenIDRelayingPartyServlet</servlet-name>
    <url-pattern>/openid</url-pattern>
    <url-pattern>/openid/*</url-pattern>
  </servlet-mapping>


> OpenID Login Support
> --------------------
>
>                 Key: JS2-1101
>                 URL: https://issues.apache.org/jira/browse/JS2-1101
>             Project: Jetspeed 2
>          Issue Type: New Feature
>          Components: Admin Portlets
>    Affects Versions: 2.2.1
>         Environment: Jetspeed Portal
>            Reporter: Randy Watler
>            Assignee: Randy Watler
>             Fix For: 2.2.1
>
>
> Add OpenID Portal login support, registering and authenticating users using email address
accessed from OpenID Provider.
> Support Google, Yahoo, and myOpenID providers.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message