Questions Tagged With authenticationhttps://answers.axonivy.com/tags/authentication/?type=rssquestions tagged <span class="tag">authentication</span>enMon, 30 Sep 2019 03:58:26 -0400REST API and JSESSIONIDhttps://answers.axonivy.com/questions/4032/rest-api-and-jsessionid<p>Hi Ivy Team,</p> <p>Is there a way to get the JSESSIONID (or the whole cookie itself) of the logged in user ?</p> <p>I want to build a rest method which is authenticating the user. I need to return the cookie, so that next requests are authenticated</p> <p>BR, Yordan</p>Stelt0Mon, 30 Sep 2019 03:58:26 -0400https://answers.axonivy.com/questions/4032/rest-api-and-jsessionidauthenticationapijavarestCalling NTLM protected REST service with SSOhttps://answers.axonivy.com/questions/3477/calling-ntlm-protected-rest-service-with-sso<p>In Ivy 7.1, is it possible to call a NTLM protected web service using the logged in user (therefore not configuring user/password in the REST client)?</p>petersMon, 08 Oct 2018 05:45:55 -0400https://answers.axonivy.com/questions/3477/calling-ntlm-protected-rest-service-with-ssossontlmauthenticationrestHow to verify username/password of user without logging in?https://answers.axonivy.com/questions/3085/how-to-verify-username-password-of-user-without-logging-in<p>Hi all</p> <p>Normally when we want to check whether user is authenticated ivy user or not, we use this api:</p> <pre><code>Ivy.session().loginSessionUser(userName, password) </code></pre> <p>But this api will also change the current login user to new one. </p> <p>Is there any other api to verify user/pass without logout current user?</p> <p>Because my process is an ivy webservice then it's run with <code>system</code> permission, if i use above api to verify another user it will throw exception that i can't logout of <code>system</code> user.</p> <p>Thanks</p>trungdvThu, 01 Feb 2018 06:00:58 -0500https://answers.axonivy.com/questions/3085/how-to-verify-username-password-of-user-without-logging-inauthenticationivyCan i turn on/off webservice authentication programmaticallyhttps://answers.axonivy.com/questions/3084/can-i-turn-on-off-webservice-authentication-programmatically<p>Hi all</p> <p>We have a webservice which implemented on ivy. This service serve for many customer. As default it required basic-auth. <img alt="alt text" src="https://answers.axonivy.com/upfiles/Untitled_JZ9zRwy.png"> Now some of customers dont want to be authenticated when calling it, so we intend to introduce the global var where admin can allow to turn on/off this feature.</p> <p>Can we go with that way and how to turn off/on this authentication type programmatically?</p> <p>Thanks</p>trungdvThu, 01 Feb 2018 03:06:57 -0500https://answers.axonivy.com/questions/3084/can-i-turn-on-off-webservice-authentication-programmaticallyauthenticationwebserviceivyREST token authenticationhttps://answers.axonivy.com/questions/2924/rest-token-authentication<p>We’ve been setting up a REST client but failed at configure the authentication. The API requires you to authenticate with a token. </p> <p>The documentation of the API tells you to pass the token through the «Authorization» header with its value being for example «Token: d2f763479f703d80de0ec15254237bc651f9cdc0». Doing this in the REST Client Activity element wasn’t successfully. </p> <p>So, what’s the correct way to pass the token to the API for authentication</p>Marco KlauenböschMon, 23 Oct 2017 10:08:48 -0400https://answers.axonivy.com/questions/2924/rest-token-authenticationauthenticationapirestHow to set information for logon IUser without permanently store to system?https://answers.axonivy.com/questions/2597/how-to-set-information-for-logon-iuser-without-permanently-store-to-system<p>Hi,</p> <p>I would like to implement a function to allow all user to share 1 common account for authenticating. That mean a user will have a token, storing his information such as Full Name, Email Address, etc. and he will use this token to login with the common account</p> <pre><code>IUser user = Ivy.session().getSecurityContext().findUser(COMMON_ACCOUNT); </code></pre> <p>To specify the information of logon user, I will use information from token.</p> <pre><code>user.setFullName(token.getFullName()); user.setEmailAddress(token.getEmailAddress()); </code></pre> <p>I only want these information temporary store in the session, and would be wiped out after user logout. But, by calling these IUser APIs, these information are persisted to system. Is there any good way to do that? Thanks</p>thienqhTue, 25 Apr 2017 23:47:53 -0400https://answers.axonivy.com/questions/2597/how-to-set-information-for-logon-iuser-without-permanently-store-to-systemauthenticationuserIs there something managing user concurrent sessions?https://answers.axonivy.com/questions/2272/is-there-something-managing-user-concurrent-sessions<p>We need to implement a security enabling a user to be logged only in one session. We will either prevent him to log twice or kill any other session on login. </p> <p>Is there already something to support that (aka sessiob listener or session filter). </p>RemiMorinFri, 09 Dec 2016 21:54:58 -0500https://answers.axonivy.com/questions/2272/is-there-something-managing-user-concurrent-sessionssecurityauthenticationDoes AXon ivy support Login Register forms (register,forgot password,login) ?https://answers.axonivy.com/questions/2139/does-axon-ivy-support-login-register-forms-register-forgot-password-login<p>hello,,, </p> <p>i would like to know how Axon ivy do the encryption , Authentication for login form and register ? is there Already built in component or let us say is best practice or guide to do this in right short way ? </p> <p>Thank you,,</p>AsilAbuHasanWed, 26 Oct 2016 09:34:54 -0400https://answers.axonivy.com/questions/2139/does-axon-ivy-support-login-register-forms-register-forgot-password-loginaxon.ivyauthenticationLogin page on Process Start with http-request link and 'Only wf users' set to truehttps://answers.axonivy.com/questions/1515/login-page-on-process-start-with-http-request-link-and-only-wf-users-set-to-true<p>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?</p> <p>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.</p> <p>Do I need to catch the 'Role Violation Exception' and redirect to a login page?</p>tiagoThu, 15 Oct 2015 10:37:30 -0400https://answers.axonivy.com/questions/1515/login-page-on-process-start-with-http-request-link-and-only-wf-users-set-to-trueexceptionhandlingauthenticationloggingHow to connect To SystemDB using Windows-Authentificationhttps://answers.axonivy.com/questions/1429/how-to-connect-to-systemdb-using-windows-authentification<p>How do I connect to Ivy System DB using the Windows-Authentification?</p>AlexisWed, 05 Aug 2015 14:35:29 -0400https://answers.axonivy.com/questions/1429/how-to-connect-to-systemdb-using-windows-authentificationengineauthenticationsystemdbSSO on Apache: not logged in to Ivy but in tomcat?https://answers.axonivy.com/questions/1319/sso-on-apache-not-logged-in-to-ivy-but-in-tomcat<p>Hello Ivy-Comunity!</p> <p>When logged in to Apache (and to Tomcat) the User is not taken by Ivy.</p> <p>In a testing environment I have the following constellation:</p> <ul> <li>Linux environment with Ivy 5.1.3 attached to AD</li> <li>Apache Server with Kerberos Login attached to the same AD</li> <li>Ajp-Connector to Ivy-Tomcat</li> <li>A jsp testing Page in the Ivy-Environment (applicationHome on the Application-wf-Page)</li> </ul> <p>So this Page shows me by asking request.getRemoteUser() that this User is logged in: Hans.Tester@TESTENV.LOCAL and a HTTP Session request.getSession().getId(). But getting the Ivy-User by ivySession.getSessionUser() returns null. Except when Logged in manualy the result Hans.Tester for the Ivy-Session.</p> <p>So why is that? Or how can I make shure, that the Session is taken correctly by ivy?</p> <p>First guess is, that the username comes with the Environment (TESTENV.LOCAL). If it is the Issue, how to shut that down?</p> <p>With further investigation I found out more:</p> <ul> <li>In a Windows-Environment under IIS the UserName of the Tomcat-Session is in this format: TESTENV\Alexis.Suter</li> <li>The Ivy-Session is not saved into Tomcat-request. (When only logging in to Ivy)</li> </ul> <p>Thanks in advance!</p>AlexisWed, 13 May 2015 09:04:14 -0400https://answers.axonivy.com/questions/1319/sso-on-apache-not-logged-in-to-ivy-but-in-tomcatssosessionauthenticationHow can I call a secured 'Web Service Process' with a 'Web Service Call Element'https://answers.axonivy.com/questions/942/how-can-i-call-a-secured-web-service-process-with-a-web-service-call-element<p>I want to provide a secured 'Web Service Process' (means, that it requires username and password) and call this 'Web Service Process' with a 'Web Service Call Element'?</p> <p>Simply checking 'HTTP Basic' as authentication method on both (WS Process and WS Call) seems not to work.</p>Dominik RegliThu, 04 Sep 2014 10:29:18 -0400https://answers.axonivy.com/questions/942/how-can-i-call-a-secured-web-service-process-with-a-web-service-call-elementauthenticationwebserviceChange Server Configuration From SQL Server Authetication to Windows Authenticationhttps://answers.axonivy.com/questions/830/change-server-configuration-from-sql-server-authetication-to-windows-authentication<p>Hello How can I change the login method in the Server Configuration from SQL Server Authentication to a Windows Server Account? I tried in User Name Domain\user, user@Domain.wan and Domain.wan\user. Every Method was without success. Thank's for your help Ralf</p> <p><img alt="alt text" src="/upfiles/Server_Config.JPG"></p>ralfraeberWed, 02 Jul 2014 10:27:54 -0400https://answers.axonivy.com/questions/830/change-server-configuration-from-sql-server-authetication-to-windows-authenticationauthenticationHow to authenticate a user that is provided by a Single Sign On (SSO) proxy.https://answers.axonivy.com/questions/506/how-to-authenticate-a-user-that-is-provided-by-a-single-sign-on-sso-proxy<p>We've got a SSO-Proxy for most of our web applications. I'd like to make use of the SSO-Proxy instead of requiring the user to login with his Windows credentials.</p> <p>I've figured out how I can read the HTTP header containing the user-id. Now I'd like to authenticate as this user, but all provided methods require a password. Is there anyway I can authenticate a user only by his user-id?</p> <p>This is what I've got to get the user-id:</p> <pre><code>package ch.company.ivy.security; import java.util.Map; import javax.faces.context.FacesContext; public class Auth { Map&lt;String, String&gt; headers; String userId; public Auth() { headers = FacesContext.getCurrentInstance().getExternalContext().getRequestHeaderMap(); userId = headers.get("UID").toString(); } public String getUserId() { return this.userId; } } </code></pre>ahatiusSat, 25 Jan 2014 15:28:14 -0500https://answers.axonivy.com/questions/506/how-to-authenticate-a-user-that-is-provided-by-a-single-sign-on-sso-proxyssoauthenticationuserHow can we change authentication scope?https://answers.axonivy.com/questions/253/how-can-we-change-authentication-scope<p>Panda team is developing a Web application to change the configuration of Ivy server. <img alt="alt text" src="/upfiles/Capture.PNG"> </p> <p>We are creating the login step, so that just the Ivy Admin can access our page. Could you please tell us how to authenticate with the Ivy Administrator account (like the picture at the bottom)</p> <p>Panda team tried to do :</p> <pre><code>public static AuthenticationException login(ISession session, String userName, String password) throws PersistencyException { try { session.authenticateSessionUser(userName, new Password(password)); return null; } catch(AuthenticationException ex) { return ex; } } </code></pre> <p>The result is we just can login with the accounts (IUser) of our application, not the account to manage the server.</p> <p>Please help us. Thank you very much</p> <p><img alt="Login" src="/upfiles/login.PNG"></p>anphunlWed, 15 Jan 2014 11:10:28 -0500https://answers.axonivy.com/questions/253/how-can-we-change-authentication-scopeauthenticationIs it possible to authentication an application user like a system administrator?https://answers.axonivy.com/questions/252/is-it-possible-to-authentication-an-application-user-like-a-system-administrator<p>Hi there when I user method session.authenticateSessionUser like the way dialog login administrator used , I just authentication all user in this Application , can't found admin user of all Application the sample : when I setup Ivy server I create a user admin to login administrator (admin/admin) , but when I call session.authenticateSessionUser at my application in server I can't found admin user do we have a way to authenticate that user ? thanks a lot</p>toantpWed, 15 Jan 2014 08:54:25 -0500https://answers.axonivy.com/questions/252/is-it-possible-to-authentication-an-application-user-like-a-system-administratorauthenticationadministrationuser