Forum Discussion

shong's avatar
shong
Adept
8 years ago

question about authorization code

Hi

I am calling API in browser to get authorization code, it returns the result like this:

https://xxx/?code=qvOisvrJIV7v6MXPmhH7wF%2B8oBZW5%2FdnTg8geLTCGsM%3D&user-id=30&tenant-id=xxx&proxy-host=xxx

From this URL, I can see the code=qvOisvrJIV7v6MXPmhH7wF%2B8oBZW5%2FdnTg8geLTCGsM%3D

I need to use this authorization code in Rest client tool like postman to get the access token, if use this value directly, it returns status as "Authorization code is NOT authorized", it seems I need to convert the encoded code like %2B to corresponding special character.

 

my question is what character does %2B stand for?%2F? and %3D?

 

Regards

Shong

  • shong

     

    Running the string through a URL decoder would reveal the token however for references the following can be used to convert the string:

     

    • $ (Dollar Sign) becomes %24
    • & (Ampersand) becomes %26
    • + (Plus) becomes %2B
    • , (Comma) becomes %2C
    • : (Colon) becomes %3A
    • ; (Semi-Colon) becomes %3B
    • = (Equals) becomes %3D
    • ? (Question Mark) becomes %3F
    • @ (Commercial A / At) becomes %40
    • / (Forward Slash) becomes %2F

    You can see the full map of character encoding at http://www.degraeve.com/reference/urlencoding.php 

    I hope this helps,

  • shong

     

    Running the string through a URL decoder would reveal the token however for references the following can be used to convert the string:

     

    • $ (Dollar Sign) becomes %24
    • & (Ampersand) becomes %26
    • + (Plus) becomes %2B
    • , (Comma) becomes %2C
    • : (Colon) becomes %3A
    • ; (Semi-Colon) becomes %3B
    • = (Equals) becomes %3D
    • ? (Question Mark) becomes %3F
    • @ (Commercial A / At) becomes %40
    • / (Forward Slash) becomes %2F

    You can see the full map of character encoding at http://www.degraeve.com/reference/urlencoding.php 

    I hope this helps,

    • shong's avatar
      shong
      Adept
      Great, thanks for your reply! It works.

      Regards
      Shong