Set Bearer token in authorization header

You can configure a OAuth credential profile to set a Bearer token in the authorization header on API Gateway when calling a resource server. This example uses a call policy with Connect to URL filter to call the resource server.

  1. In the Policy Studio tree, click External Connections > Client Credentials > OAuth2.
  2. On the OAuth Credentials tab, double-click the credential profile you want to edit. To create a new credentials profile, see Add application credentials.
  1. Call the Resource server:
    • Select the filter Connect to URL.
    • Select the Authentication tab.
    • Select a Credential profile.
  1. Select the Client Credential. This links back to the access token store which holds the Access token you received from the OAuth2 server.
  2. Invoke this filter to call the Resource Server. The Bearer token in the authorization header is set.

Related Links