15.13.2. Presenting an OpenIdLogin form
To initiate an OpenID log in, present a form to the user requesting the user's OpenID. The
#{openid.id}
value accepts the user's OpenID and the #{openid.login}
action initiates an authentication request.
<h:form> <h:inputText value="#{openid.id}" /> <h:commandButton action="#{openid.login}" value="OpenID Login"/> </h:form>
When the user submits the login form, they are redirected to their OpenID provider. The user eventually returns to your application through the Seam pseudo-view
/openid.xhtml
, provided by the OpenIdPhaseListener
. Your application can handle the OpenID response with a pages.xml
navigation from that view, just as if the user had never left your application.