I am trying to use the Rest API in IFS 10. Currently I am struggling with the authentication. I have found various posts which some say you can use basic authentication, others say it must be oAuth. However using basic I am constantly receiving a 401 Unauthorized, i can’t find any official documentation explaining how to authenticate using oAuth.
Only note for future viewers, using a cloud hosted demo IFS10 instance when I clicked on the Compatibility API Doc it asked me for username/password. However the only difference seems to be the URL, default is “main”, compatibility type is “int”. Switching this made everything work.
It would be worth being aware of security implications of using compatibility application type too, so let me add some info about that as well.
Enabling compatibility application type exposes the projection to be used with basic authentication. By default, only projections of Integration category are exposed through basic authentication.
For projections that do not have this enabled by default, it should be done selectively when OAuth is not an option and after carefully considering the network security as well. Basic authentication is a legacy technology and does not meet current security or compliance requirements, therefore it is advised to use OAuth as much as possible.
You can find this in following documentation as well:
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.