Getting Started with Miro's OAuth 2.0 in 3 minutes

Поделиться
HTML-код
  • Опубликовано: 7 фев 2025
  • In this video, we go over how to authenticate a user in Miro with the OAuth 2.0 authorization code flow. We will take the steps to get an access token and interact with Miro's REST API on behalf of a user. We also teach you how to refresh your access token.
    developers.mir...
    We will use cURL commands to exchange our auth code for an access token:
    curl api.miro.com/v... \
    -d "client_id=" \
    -d "client_secret=" \
    -d "code=" \
    -d "redirect_uri=localhost:3000" \
    -d "grant_type=authorization_code"
    And then we use this command to refresh our token:
    curl api.miro.com/v... \
    -d "client_id=" \
    -d "client_secret=" \
    -d "refresh_token=" \
    -d "grant_type=refresh_token"
    This video will help users understand the steps associated with going through the OAuth flow. The steps included in this video are the following:
    1. Prompt users to install your app and get an auth code
    2. Exchange an auth code for an access token
    3. Use the access token in Get Boards Miro REST API call
    4. Request a new access token with a refresh token

Комментарии •