[seam-commits] Seam SVN: r9690 - trunk/src/main/org/jboss/seam/security/openid.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Dec 1 18:18:14 EST 2008


Author: norman.richards at jboss.com
Date: 2008-12-01 18:18:14 -0500 (Mon, 01 Dec 2008)
New Revision: 9690

Modified:
   trunk/src/main/org/jboss/seam/security/openid/OpenId.java
Log:
fix for invalid openid

Modified: trunk/src/main/org/jboss/seam/security/openid/OpenId.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/openid/OpenId.java	2008-12-01 23:05:23 UTC (rev 9689)
+++ trunk/src/main/org/jboss/seam/security/openid/OpenId.java	2008-12-01 23:18:14 UTC (rev 9690)
@@ -68,21 +68,21 @@
             context.getApplication().getViewHandler().getActionURL(context, "/openid.xhtml");
         return returnToUrl;
     }
-    public void login() 
-        throws IOException
-    {
+    
+    public void login() throws IOException {
         validatedId = null;
         String returnToUrl = returnToUrl();
 
         String url = authRequest(id, returnToUrl);
-        
-        Redirect redirect = Redirect.instance();
-        redirect.captureCurrentView();
-        
-        FacesManager.instance().redirectToExternalURL(url);
+
+        if (url != null) {
+            Redirect redirect = Redirect.instance();
+            redirect.captureCurrentView();
+
+            FacesManager.instance().redirectToExternalURL(url);
+        }
     }
 
-
     // --- placing the authentication request ---
     @SuppressWarnings("unchecked")
     protected String authRequest(String userSuppliedString, String returnToUrl)




More information about the seam-commits mailing list