IFS Cloud 22R1 , How to enable Basic Auth for a Standard RestAPI
Hi , I just installed IFS Cloud 22R1 ,
during the installration ,I set
“ifsappproxy.basicAuth = enabled” in ifscloud-value.yaml.
So, my question is,
what is the next step?
for a specfic Projection(eg: ScrappingCausesHandling.svc) , how to make it support Basic Auth?
in APPS 10 , via API Explorer , we can set a projection to “Include in Compatibility Application Type ” to make it support basic Auth. How to do this in IFS Cloud?
2. I alrady read this post , but is doesn’t mention how to enable a specific projection
Page 1 / 1
Hi @Shou ,
You don’t have to do anything extra here. “Include in Compatibility Application Type ” is not applicable for IFS Cloud. Therefore you should be able to call the API by setting the required headers for basic auth in the http request. Have you tried calling the API using a tool like Postman?
Also please be mindful that Basic auth. is not recommended in production due to security reasons.
But the documention is for outbound. IFS call external system’s rest API.
while, I’m talking about Inbound.
Hi @Shou ,
You don’t have to do anything extra here. “Include in Compatibility Application Type ” is not applicable for IFS Cloud. Therefore you should be able to call the API by setting the required headers for basic auth in the http request. Have you tried calling the API using a tool like Postman?
Also please be mindful that Basic auth. is not recommended in production due to security reasons.
Regards,
/Rifki
@Rifki Razick
Yes, I tried, but failed. (same postman setting works for APPS 10)
@subslk any thoughts?
Hi @Shou,
during the installration ,I set
“ifsappproxy.basicAuth = enabled” in ifscloud-value.yaml.
Please also double check if you have passed basicAuth parameter to the installer correctly. You can refer to “The parameters order” documentation, which can be found here:
You can either pass it using the ifscloud_values.yaml file using the correct YAML syntax as mentioned in above documentation or pass it directly through the command line using a --set flag.
Parameters for proxy documentation can be found here:
I just “describe” the ifsapp-proxy pod, and found BASIC_AUTHstill disabled.
> kubectl describe pod ifsapp-proxy-xxxxxxxx-8k4ph -n ifscloud
seems it is a bug.
Hi, it seems the techdoc is faulty. I will correct it. Seems you are the first ever trying to set it :)
Which is good as we don’t encourage setting the entire application with basic Auth enabled… i would suggest to adopt the inbound integration to use a proper oAuth token instead…
If you still really need basic Auth: The parameter is called basicAuthEnabled and not basicAuth and should be set to true or false