Last updated

Change OAuth2 token URL

Use a custom decorator to change the OAuth2 credentials flow token URL.

Estimated time: 15 minutes

Step-by-step instructions

  1. Add this code to your repo with the API (the Redocly configuration file is an example).

    1. redocly.yaml
    2. acme-plugin.js
    3. decorators/change-token-url.js
    extends:
      - recommended
    plugins:
      - './acme-plugin.js'
    decorators:
      plugin/change-token-url:
        tokenUrl: 'https://token.example.com/url'