Author: prabath
Date: Sat Jan  5 22:15:23 2008
New Revision: 11876

Log:

OpenID integration

Modified:
   
trunk/solutions/identity/modules/user-ui/src/main/java/org/wso2/solutions/identity/user/ui/interceptor/SessionInterceptor.java

Modified: 
trunk/solutions/identity/modules/user-ui/src/main/java/org/wso2/solutions/identity/user/ui/interceptor/SessionInterceptor.java
==============================================================================
--- 
trunk/solutions/identity/modules/user-ui/src/main/java/org/wso2/solutions/identity/user/ui/interceptor/SessionInterceptor.java
      (original)
+++ 
trunk/solutions/identity/modules/user-ui/src/main/java/org/wso2/solutions/identity/user/ui/interceptor/SessionInterceptor.java
      Sat Jan  5 22:15:23 2008
@@ -36,21 +36,35 @@
         HttpServletRequest request = (HttpServletRequest) context
                 .get(StrutsStatics.HTTP_REQUEST);
         StringBuffer requestURL = request.getRequestURL();
-        if(requestURL.indexOf(IdentityConstants.USER_VERIFICATION_PAGE) > 0){
+        if (requestURL.indexOf(IdentityConstants.USER_VERIFICATION_PAGE) > 0) {
             return invocation.invoke();
-        }else if (requestURL.indexOf(UIConstants.LOGIN_ACTION) < 0
+        } else if (requestURL.indexOf(UIConstants.LOGIN_ACTION) < 0
                 && requestURL.toString().indexOf(
                         UIConstants.INFOCARD_SUBMIT_ACTION) < 0
                 && requestURL.toString().indexOf(
                         UIConstants.USER_REGISTRATION_FORM_ACTION) < 0
                 && requestURL.toString().indexOf(
                         UIConstants.USER_REGISTRATION_FORM_SUBMIT_ACTION) < 0
-                && requestURL.toString().indexOf(
-                        UIConstants.SHOW_LOGIN_ACTION) < 0
+                && 
requestURL.toString().indexOf(UIConstants.SHOW_LOGIN_ACTION) < 0
                 && requestURL.toString().indexOf(
                         UIConstants.USER_REGISTRATION_CARD_ACTION) < 0
                 && requestURL.toString().indexOf(
-                        UIConstants.USER_REGISTRATION_CARD_SUBMIT_ACTION) < 0) 
{
+                        UIConstants.USER_REGISTRATION_CARD_SUBMIT_ACTION) < 0
+                && requestURL.toString().indexOf(
+                        UIConstants.OPENID_SUBMIT_ACTION) < 0
+                && requestURL.toString().indexOf(
+                        UIConstants.USER_REGISTRATION_OPENDID_ACTION) < 0
+                && requestURL.toString().indexOf(
+                        UIConstants.OPENID_INFO_CARD__SUBMIT_ACTION) < 0
+                && requestURL.toString().indexOf(
+                        UIConstants.OPENID_INFO_CARD__ACTION) < 0
+                && requestURL.toString().indexOf(
+                        UIConstants.OPENID_INFO_CARD__DOWNLOAD_ACTION) < 0
+                && requestURL.toString().indexOf(
+                        UIConstants.OPENDID_CALLBACK_ACTION) < 0
+                && requestURL.indexOf(UIConstants.OPENID_AUTH_ACTION) < 0
+                && requestURL.toString().indexOf(
+                        UIConstants.OPENID_LOGIN_ACTION) < 0) {
             // If the request is not Login.action
             HttpSession session = request.getSession(true);
             Object user = session.getAttribute(UIConstants.USER);

_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev

Reply via email to