I am using OpenId4Java with a JSF application. I have added security restrictions to my web.xml something like this.
<security-constraint> <web-resource-collection> <web-resource-name>Restricted</web-resource-name> <url-pattern>/core/*</url-pattern> <http-method>GET</http-method> <http-method>POST</http-method> </web-resource-collection> </security-constraint> <login-config> <auth-method>FORM</auth-method> <form-login-config> <form-login-page>/user/login.xhtml</form-login-page> <form-error-page>/user/logout.xhtml</form-error-page> </form-login-config> </login-config>
Now that the launch of the application and the user want to access
http: //www.somehost: 8080 / myapp / core / abc.xhtml
using web.xml , I can show the user the login page, now I put the login with openid, like Google, Yahoo now my question is how can I tell openid that my return url is
http: //www.somehost: 8080 / myapp / core / abc.xhtml
Or if the user is from
http: //www.somehost: 8080 / myapp / core / xyz.xhtml
this URL, after successful login, the user will be redirected to this page.
source share