org.brickred.socialauth.seam
Class SocialAuthPhaseListener

java.lang.Object
  extended by org.brickred.socialauth.seam.SocialAuthPhaseListener
All Implemented Interfaces:
Serializable, EventListener, javax.faces.event.PhaseListener

public class SocialAuthPhaseListener
extends Object
implements javax.faces.event.PhaseListener

Modified version of org.jboss.seam.security.openid.OpenIdPhaseListener. This version is a drop in replacement for the OpenIdPhaseListener that comes bundled with the JBoss Seam framework. This listener is called when the external provider returns the control back to our application

See Also:
Serialized Form

Constructor Summary
SocialAuthPhaseListener()
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent event)
          No implementation is required because we have already redirected to the view provided in the SocialAuth component
 void beforePhase(javax.faces.event.PhaseEvent event)
          If the view starts with the view URL provided to the SocialAuth Seam component, this listener assumes that it has been redirected here by the external provider and verifies if the user is authenticated
 javax.faces.event.PhaseId getPhaseId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocialAuthPhaseListener

public SocialAuthPhaseListener()
Method Detail

beforePhase

public void beforePhase(javax.faces.event.PhaseEvent event)
If the view starts with the view URL provided to the SocialAuth Seam component, this listener assumes that it has been redirected here by the external provider and verifies if the user is authenticated

Specified by:
beforePhase in interface javax.faces.event.PhaseListener

afterPhase

public void afterPhase(javax.faces.event.PhaseEvent event)
No implementation is required because we have already redirected to the view provided in the SocialAuth component

Specified by:
afterPhase in interface javax.faces.event.PhaseListener

getPhaseId

public javax.faces.event.PhaseId getPhaseId()
Specified by:
getPhaseId in interface javax.faces.event.PhaseListener


Copyright © 2011. All Rights Reserved.