My webapp needs to auto-login when the user access the app url:
example:
http://myapp/home.xhtml?token={3bcdc006-05fc-4ce1-953a-17375edcf2a2}
on my pages.xml i have the following:
<pages xmlns="http://jboss.com/products/seam/pages"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.1.xsd"
no-conversation-view-id="/home.xhtml"
login-view-id="/login.xhtml">
When no conversation is active the default is home.xhtml and when the user reach the home.xhtml with a token parameter i wish that a action be called and log in the user.
any tutorial or example for that?
and if no parameter is called i wish to raise a org.jboss.seam.security.AuthorizationException so the user get redirected to error.xhtml
Thanks in advance