Skip to main content
Answered

Challenges in Token Creation Using Postman

  • September 30, 2024
  • 6 replies
  • 62 views

Forum|alt.badge.img+4
  • Active Contributor
  • 24 replies

Hello all,

I'm in the process of creating a token for my app and using Postman for testing. You can see the relevant details in the attached screenshots.

 

 

 

 

 

When I click "Get New Access Token," my browser opens, and I can see that the authentication for my request is successful.

 

 

 

 

However, when I'm redirected back to Postman, I encounter the following error:

 

 

 

 

Am I missing a step or parameter, or doing something wrong? Has anyone else experienced this issue?

I would really appreciate any help!

Thank you in advance!

 

Best answer by Horea Porutiu

Hi @vkoko 

Did you try something like this? 

 

 

curl --request POST \
    --url 'https://api.miro.com/v1/oauth/token
        ?grant_type=refresh_token
        &client_id={CLIENT_ID}
        &client_secret={CLIENT_SECRET}
        &refresh_token={REFRESH_TOKEN}' 

 

More details can be found on this relevant doc page.

View original
Was it helpful?

6 replies

Horea Porutiu
Mironeer
Forum|alt.badge.img+1

Hi @vkoko 

I see that one of the drop downs says “send as basic auth” but this is not actually basic auth. This is a token based auth. Is there something in that dropdown to set as “Bearer token” 

Could you try again and let me know if that works?  

 


Forum|alt.badge.img+4
  • Author
  • Active Contributor
  • 24 replies
  • September 30, 2024

Hello, @Horea Porutiu 

Thanks for your prompt answer. As my OAuth type I want to have OAuth 2.0 (As i read in documentation Miro supports OAuth 2.0).

 

I made a small change in Client Authentication and i choose “Send client credentials in body”

Now Im able to create a token!

 

 

But when I try to refresh the token I am receiving this error:

“Error: Could not complete OAuth 2.0 token request”

Any ideas for this? 

 

 

 

 

 


Horea Porutiu
Mironeer
Forum|alt.badge.img+1
  • Mironeer
  • 179 replies
  • Answer
  • September 30, 2024

Hi @vkoko 

Did you try something like this? 

 

 

curl --request POST \
    --url 'https://api.miro.com/v1/oauth/token
        ?grant_type=refresh_token
        &client_id={CLIENT_ID}
        &client_secret={CLIENT_SECRET}
        &refresh_token={REFRESH_TOKEN}' 

 

More details can be found on this relevant doc page.


Horea Porutiu
Mironeer
Forum|alt.badge.img+1

You can try it first via cURL and if that works, then it’s likely something with your Postman settings. That is the easiest way to debug that i’ve found. 


Forum|alt.badge.img+4
  • Author
  • Active Contributor
  • 24 replies
  • September 30, 2024

@Horea Porutiu It seems to be working. When I run the command from my terminal, I receive a new refresh token. I’ll review the options in Postman again. Thanks for your support!


Horea Porutiu
Mironeer
Forum|alt.badge.img+1

Happy to help :) Let me know if you have further questions! 


Reply