<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Can i turn on/off webservice authentication programmatically</title><link>https://answers.axonivy.com/questions/3084/can-i-turn-on-off-webservice-authentication-programmatically</link><description>&lt;p&gt;Hi all&lt;/p&gt;
&lt;p&gt;We have a webservice which implemented on ivy. This service serve for many customer. As default it required basic-auth.
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/Untitled_JZ9zRwy.png"&gt;
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.&lt;/p&gt;
&lt;p&gt;Can we go with that way and how to turn off/on this authentication type programmatically?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3084/can-i-turn-on-off-webservice-authentication-programmatically" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 01 Feb 2018 06:15:46 -0500</lastBuildDate><item><title>Comment by trungdv on Reto Weiss's answer</title><link>https://answers.axonivy.com/questions/3084/can-i-turn-on-off-webservice-authentication-programmatically#3088</link><description>&lt;p&gt;hi &lt;a href="https://answers.axonivy.com/users/11/reto-weiss"&gt;&lt;a href="https://answers.axonivy.com/users/11/reto-weiss"&gt;@Reto Weiss&lt;/a&gt;&lt;/a&gt; ♦♦
I guess we can't get ivy user from that filter, right?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trungdv</dc:creator><pubDate>Thu, 01 Feb 2018 06:15:46 -0500</pubDate><guid>https://answers.axonivy.com/questions/3084/can-i-turn-on-off-webservice-authentication-programmatically#3088</guid></item><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/3084/can-i-turn-on-off-webservice-authentication-programmatically/3086</link><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;One solution could be to turn authentication to None/Container. Then, for the customers that want to have authentication install a filter in the web.xml or a tomcat valve in the context.xml file that performs the HTTP Basic Authentification for WebService requests&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Reto Weiss, Axon.ivy Support&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Thu, 01 Feb 2018 06:10:37 -0500</pubDate><guid>https://answers.axonivy.com/questions/3084/can-i-turn-on-off-webservice-authentication-programmatically/3086</guid></item></channel></rss>