Configure a REST message with OAuth

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 2분
  • You can configure an outbound REST message to send OAuth credentials with the request.

    시작하기 전에

    Role required: web_service_admin and oauth_admin
    Before starting this procedure, ensure:
    • There is a REST Message record that you want to configure to use OAuth.
    • There is an OAuth provider set up in the OAuth application registry with the OAuth client information to use. For more information, see OAuth 2.0.
    • The OAuth provider has an associated OAuth 2.0 profile.
    • The REST message HTTP Methods are not configured to use a MID Server.
    주:
    Ensure any scripts that call this REST message use the RESTMessageV2 API. The RESTMessageV2 API is required to send authenticated REST messages via scripts.

    프로시저

    1. Navigate to All > System Web Services > Outbound > REST Message.
    2. Select a REST message record.
    3. In the Authentication type field, select OAuth 2.0.
    4. In the OAuth profile field, select the OAuth 2.0 profile that specifies the credentials you want to send.
    5. Right-click the form header and select Save.
      An info message appears at the top of the form indicating that you must request a new OAuth token.
    6. Click the Get OAuth Token related link.
      Depending on your OAuth provider, a separate window from your provider may appear asking for confirmation before providing a token. Complete any steps required by the provider to obtain the token.

    다음에 수행할 작업

    Test the REST message to ensure you receive the expected response. You can optionally specify different authentication settings for each HTTP method related to this REST message, overriding the parent REST message settings.