# Variables in OAuth2

**URL:** <https://community.postman.com/t/variables-in-oauth2/39929>\
**Category:** Help Hub\
**Created:** [October 10, 2022, 9:33pm UTC](https://community.postman.com/t/variables-in-oauth2/39929 "2022-10-10T21:33:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmitsiou](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@gmitsiou](https://community.postman.com/u/gmitsiou)\
**Post date:** [October 10, 2022, 9:33pm UTC](https://community.postman.com/t/variables-in-oauth2/39929/1 "2022-10-10T21:33:09Z")

</div>

Hello All,

I have create an API Call using OAuth2 as authentication method. FOr the client ID and Client Secret i ahve set variables additonally, as the belo screenshot.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/0/2/02ac77a980770a96697ecfce3e8fe90ce73eac6b.png)

The token genrated succesfully, but i got the same notice for these two fields.  
“The field contains characters that might need to be percent-encoding depending on the authentication server”

Can you help me which is the reason(s) and how can i solve it?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 28, 2025, 2:30pm UTC](https://community.postman.com/t/variables-in-oauth2/39929/2 "2025-04-28T14:30:00Z")

</div>

Closed on April 28, 2025, 2:30pm UTC


