# Coldfusion: Oauth2, 'Invalid authorization code'/'invalid\_grant' on token request

**URL:** <https://devforum.zoom.us/t/coldfusion-oauth2-invalid-authorization-code-invalid-grant-on-token-request/78409>\
**Category:** Authentication\
**Created:** [November 7, 2022, 9:55am UTC](https://devforum.zoom.us/t/coldfusion-oauth2-invalid-authorization-code-invalid-grant-on-token-request/78409 "2022-11-07T09:55:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 7, 2022, 4:01pm UTC](https://devforum.zoom.us/t/coldfusion-oauth2-invalid-authorization-code-invalid-grant-on-token-request/78409/2 "2022-11-07T16:01:50Z")

</div>

Hi @marc.polatschek  
Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!  
It looks like you are using the wrong set of credentials.  
You do not need to pass the code or redirect\_uri to generate access\_Tokens with the Server to Server OAuth app.

Here is a topic that I wrote on how to use the Server to Server OAuth app type with Postman.

> [@How to user Server-to-Sever OAuth app with Postman](https://devforum.zoom.us/t/how-to-user-server-to-sever-oauth-app-with-postman/70848):
>
> How to use our Server-to-Server OAuth with Postman? As some of you might be aware of, our JWT app is being deprecated by June 2023 and we encourage you to migrate to the newly introduced [Server-to-Server OAuth App](https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app) That being said, here is a quick and simple guide on how to use or new app with Postman As stated in our documentation here: This new app type facilitates OAuth-authenticated requests between servers without end-user involvement. And this grant type enable your private server a…

This might help you understand the issue you are seeing  
Best,  
Elisa

---

_[View the full topic](https://devforum.zoom.us/t/coldfusion-oauth2-invalid-authorization-code-invalid-grant-on-token-request/78409)._
