OAuth 2.0


If your API is protected by OAuth, you will need to enable it for Try It Out. Enabling OAuth for Try It Out can be accomplished through two different methods: via Modeling or directly into the Hubs code.



OAuth in Modeling

  1. Create a new Modeling file or select an existing one referenced by the Hub you wish to modify

If you are creating a new Modeling file, make sure to reference it in your Hub

  1. Next to Security in the left-middle toolbar, Add a Security Scheme by clicking the +
  2. Input a key
  3. Select oauth2 under type
  4. Select a grant type under OAuth flow
  5. Select an authorization url
  6. Select a token url
  7. Add Scope (optional)
  8. Add a Security scheme description (optional)

Related Articles