Forbidden Error (403) from Oka NGINX

Hello Everyone,

I am trying to integrate Okta Rest APIs from within my Mulesoft Integration flows and I am getting the below error (Forbidden 403) when invoking /token endpoint. The authentication & authorization code endpoints works fine in Mule and this problem only happens for /token (probably because its post). Need help urgently on this as I am struck without any idea on how to solve it. Thanks.

Regards,
Arnab.

Server: nginx

Public-Key-Pins-Report-Only: pin-sha256=“r5EfzZxQVvQpKo3AgYRaT7X2bDO/kj3ACwmxfdT2zt8=”; pin-sha256=“MaqlcUgk2mvY/RFSGeSwBRkI+rZ6/dxe/DuQfBT/vnQ=”; pin-sha256=“72G5IEvDEWn+EThf3qjR7/bQSWaS2ZSLqolhnO6iyJI=”; pin-sha256=“rrV6CLCCvqnk89gWibYT0JO6fNQ8cCit7GGoiVTjCOg=”; max-age=60; report-uri=“Report URI: Welcome to report-uri.com

X-Okta-Request-Id: XedW7LgynlCId3wsKVZD@wAABRk

X-XSS-Protection: 1; mode=block; report=https://okta.report-uri.com/r/d/xss/enforce

P3P: CP=“HONK”

Headers from the request (before hitting okta endpoint)

Request path=/api/token
Raw request path=/api/token
Method=POST
Listener path=/api/*
Local Address=127.0.0.1:8081
Query String=
Relative Path=/api/token
Masked Request Path=/token
Remote Address=127.0.0.1:51515
Request Uri=/api/token
Raw request Uri=/api/token
Scheme=http
Version=HTTP/1.1
Headers=[
content-type=application/x-www-form-urlencoded
user-agent=PostmanRuntime/7.20.1
accept=/
cache-control=no-cache
postman-token=23b3f494-bf5d-4089-806b-693d069f05be
host=localhost:8081
accept-encoding=gzip, deflate
content-length=198
connection=keep-alive
]

Whose token endpoint are you hitting and whats the full path?