Skip to main content
Question

IFS10 API

  • Sep 18, 2024 8:28 AM UTC
  • 8 replies
  • 266 views

Forum|alt.badge.img+6

Hello

I used to do some testing in Postman with the API’s(IFS10). I used the Basic Auth with IFSAPP and PW and this worked fine but now I have a 401 Unauthorized Error. I also followed this guide  - https://dsj23.me/2021/01/08/ifs-authentication-flow-with-oauth-and-openid-connect/     tried using OAuth.2.0 and was able to generate a token but still the same error. Any ideas?

 

Thanks
Ross

8 replies

Forum|alt.badge.img+5
  • Do Gooder (Customer)
  • Sep 18, 2024 10:36 AM UTC

We needed a bit of time to get OAuth running as well. For us it was the ClientID that didn’t match.

I would analyse the token with a tool like jwt.ms: Welcome! and then compare the ClientID with what you defined in IFS.


Forum|alt.badge.img+6
  • Author
  • Do Gooder (Customer)
  • Sep 18, 2024 2:38 PM UTC

@Remo Thanks, just looking at that guide again and in the middleware server area under identify provider - IFS Database,  shows all the details but mine is blank. My details are  showing under the identity provider of Azure Active Directory…..?

 

 


Forum|alt.badge.img+5
  • Do Gooder (Customer)
  • Sep 18, 2024 2:40 PM UTC

I think you have to set up AD authentication instead of database. It would cause quite a few changes though.

However, in IFS10 you can use basic authentication, why do you want to use OAuth?


Forum|alt.badge.img+6
  • Author
  • Do Gooder (Customer)
  • Sep 18, 2024 2:43 PM UTC

@rosscortb  Because I can’t get basic authentication to work. It used to work but stopped. 

API url is active, the username and password are correct but I get a 401 error.  When I paste the url in a browser it works fine. 


Forum|alt.badge.img+5
  • Do Gooder (Customer)
  • Sep 18, 2024 2:45 PM UTC

In my experience it’s easier to get Basic Auth running, I would recommend to look into that instead of OAuth.


Forum|alt.badge.img+6
  • Author
  • Do Gooder (Customer)
  • Sep 18, 2024 2:51 PM UTC

@Remo will do, I think since the security team turned on accessing IFS Enterprise Explorer via SSO its stopped working. 


Forum|alt.badge.img+5
  • Do Gooder (Customer)
  • Sep 18, 2024 2:53 PM UTC

Then maybe check the FND_USER_TAB for the user you’re using. In the column WEB_USER there might be an email address indicating it’s using AD SSO. If you can, replace it with the value of IDENTITY and see if Basic Auth is working again.


Forum|alt.badge.img+6
  • Author
  • Do Gooder (Customer)
  • Sep 18, 2024 3:15 PM UTC

@Remo