<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Ivy 7.1 Rest API basic authorization</title><link>https://answers.axonivy.com/questions/3343/ivy-7-1-rest-api-basic-authorization</link><description>&lt;p&gt;I'm trying to create a test REST API in Ivy version 7.1 like the below:
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/IMG_26062018_133012_0.png"&gt;
then test it on Postman and get this response:
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/postman.png"&gt;&lt;/p&gt;
&lt;p&gt;Moreover, when I try to access the API by Chrome browser.&lt;/p&gt;
&lt;p&gt;First time attempt:
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/chrome.png"&gt;
Then cancel it and get this response:
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/chrome2.png"&gt;
Then press F5 and I get this response:
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/chrome3.png"&gt;&lt;/p&gt;
&lt;p&gt;According to the last comment on this topic &lt;a href="https://answers.axonivy.com/questions/1858/rest-service-security"&gt;https://answers.axonivy.com/questions/1858/rest-service-security&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The REST service provided by Axon.ivy are be default protected by HTTP BASIC Authentication.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So my question is that why I could access the API without the basic authorization on Postman?
I also test with the same scenario in Ivy version 6.2 but I'm unable to access the API without the basic authorization.
Thanks&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3343/ivy-7-1-rest-api-basic-authorization" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 26 Jun 2018 03:42:59 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/3343/ivy-7-1-rest-api-basic-authorization/3344</link><description>&lt;p&gt;It a Designer thing. Postman does not seem to show a Basic auth dialog. So the Designer will automatically sign you in as &lt;code&gt;Developer&lt;/code&gt;. You will not see such behaviour with a real engine.&lt;/p&gt;
&lt;p&gt;But you could specify pro-actively a user to log in with postman by setting secure auth headers:
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/postmainAuthHeaders.png"&gt;&lt;/p&gt;
&lt;p&gt;Another thing that could be confusing is the cookie store that knows the attached JSESSONID once you had a successfully authenticated session. You may clean it up manually to switch the user
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/postmanCookies.png"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 26 Jun 2018 03:42:59 -0400</pubDate><guid>https://answers.axonivy.com/questions/3343/ivy-7-1-rest-api-basic-authorization/3344</guid></item></channel></rss>