[jboss-user] [JBoss Seam] - Re: external authentication-any pointers for a beginner?

mwkohout do-not-reply at jboss.com
Wed Aug 1 11:06:48 EDT 2007


It's still not working.  Setting the pages.xml entries(and updating to HEAD of cvs) like so:

  |  <navigation>
  |             <rule if-outcome="home">
  |                 <redirect view-id="/home.xhtml"/>
  |             </rule>
  |         </navigation>
  |     </page>
  | 
  |     <page view-id="/home.xhtml" scheme="https">
  |        <restrict>#{identity.isLoggedIn(true)}</restrict>  
  |     </page>
  | 

resulted in identical behavior.

Setting the login-requred parameter to true resulted in me being forwarded to seam-gen's login.xhtml view.  I understand why that's happening-because of the exception handler listed below...but I'm not sure what I should do to make it hit my authentication code.  Subclass Pages?

  | <page view-id="*">
  |         <navigation>
  |             <rule if-outcome="home">
  |                 <redirect view-id="/home.xhtml"/>
  |             </rule>
  |         </navigation>
  |     </page>
  | 
  |   <page view-id="/home.xhtml" login-required="true" scheme="https">
  |   </page>
  |   <exception class="org.jboss.seam.security.NotLoggedInException">
  |         <redirect view-id="/login.xhtml"/>
  |     </exception>
  | 

any ideas?  where in the seam code itself should I be looking so I can debug this behavior? 

thanks again
Mike Kohout

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069684#4069684

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069684



More information about the jboss-user mailing list