API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  "403" Forbidden Error in Response

    Posted Sat April 08, 2023 03:40 AM

    Hello Team,

    I tried to implement the OAuth and I am successfully able to get the access token from it.
    But When i am executing the Sample API using the access token in Postman I am getting "403 forbidden error".I am unable to identify where i am doing wrong. Please guide me.  



    ------------------------------
    Pawan Jinaga
    ------------------------------


  • 2.  RE: "403" Forbidden Error in Response

    Posted Mon April 10, 2023 08:41 AM

    Hi Pawan,

    Is your client subscribed to the API you are attempting to execute?  I'd suggest setting the DataPower logging to debug and follow the transaction through the logs.  It could very well be you are passing the security portion of the API preflow but you are not subscribed to the API.

    Regards,
    Steve



    ------------------------------
    Steve Linn
    Senior Consulting I/T Specialist
    IBM
    ------------------------------



  • 3.  RE: "403" Forbidden Error in Response

    Posted Wed April 12, 2023 05:06 AM

    Hello Steve,

    Thanks for your suggestion, I checked the logs and found that the error occurred because the scope was not selected in API Security Requirement.
    Now Api is working fine.

    Regards,
    Pawan
     



    ------------------------------
    Pawan Jinaga
    ------------------------------