<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Login page on Process Start with http-request link and 'Only wf users' set to true</title><link>https://answers.axonivy.com/questions/1515/login-page-on-process-start-with-http-request-link-and-only-wf-users-set-to-true</link><description>&lt;p&gt;Is there a way to configure a process start with a http link to show the login page if the caller is not logged in?&lt;/p&gt;
&lt;p&gt;I defined the JsfWorkflowUi as 'Default Pages Implementor' but this didn't worked. Creating a process with a DefaultLoginPage.ivp start step didn't worked to.&lt;/p&gt;
&lt;p&gt;Do I need to catch the 'Role Violation Exception' and redirect to a login page?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1515/login-page-on-process-start-with-http-request-link-and-only-wf-users-set-to-true" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 19 Oct 2015 09:00:16 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/1515/login-page-on-process-start-with-http-request-link-and-only-wf-users-set-to-true/1518</link><description>&lt;p&gt;I'd handle this situation with a re-useable Html Dialog step which is called first after every public start link (Start Request). &lt;/p&gt;
&lt;p&gt;Within this dialog you can either show the login mask. Or directly close it again as the user is already logged in. See my sample screenshots: &lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/mainProcess.PNG"&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/loginLogic_sUYgVyW.PNG"&gt;&lt;/p&gt;
&lt;p&gt;I do not like the 'onlyWfUser' approach because it is not re-usable. It would be possible to use an Exception Start to catch the error and let the user log in on a Html Dialog. But I don't see a way to remember the start link which was used by the user. So it's difficult to redirect the user to the correct page after you showed a login page.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 19 Oct 2015 09:00:16 -0400</pubDate><guid>https://answers.axonivy.com/questions/1515/login-page-on-process-start-with-http-request-link-and-only-wf-users-set-to-true/1518</guid></item></channel></rss>