Hello I am trying to access the token endpoint from my javascript Cordova application and I am getting the 403 Forbidden error. I have verified that the client_id and other parameters are accurate by running the same scenario through Postman, but when I run the same request from my application I get the 403 error.
I can get the authorization_code in the app as well as receive the access_token and id_token if I call the authorization endpoint with id_token and token, however when I try the PKCE route I am running into that 403 Forbidden error.
I have had the issue with PKCE from a “Native” app. I have also tried a “Web” app but have gotten the same results. All seems to work through Postman but then I get the 403 Forbidden error in the app.
Are you using Ionic + Cordova or just JavaScript? The reason I ask is because I’ve successfully used Ionic AppAuth to integrate authentication with Okta.
@dragos and @mraible I was able to solve my issue! I had to add “file://” to my Trusted Origin as well as adding it as a Redirect_URI for my app, then all worked well. Any issues you see using that?