API Portal Guide

API Portal Guide

Invoke a managed API with OAuth 2.0 authentication and authorization

Invoke a managed API with OAuth 2.0 authentication and authorization

To invoke a managed API that uses OAuth 2.0 authentication, you generate an OAuth 2.0 authorization token and send the token to the managed API.
The following sections describe the stages of invoking a managed API that uses OAuth 2.0 authentication:
Generating an OAuth 2.0 authorization token
To generate the token, you authenticate to the
Informatica Intelligent Cloud Services
OAuth 2.0 server using the server URL and the OAuth 2.0 client credentials that you receive from the
API Portal
administrator.
The token is valid for 15 minutes. After 15 minutes you have to generate a new token.
You use one of the following methods to provide the client credentials to the OAuth 2.0 server, based on the application or software package that you use to invoke the API:
  • Enter the OAuth 2.0 client ID and secret separately, as plain text. For example, in Postman, enter the client name in the
    Username
    field and the client secret ID in the
    Password
    field.
  • Enter the client credentials as an authentication header value in a Basic authorization header.
The following image shows an API invocation through Postman with a Basic authorization header:
Sending the token to the managed API
You pass the token that you receive from the OAuth 2.0 server to the managed API as an Authorization header with the prefix
Bearer
followed by the token.
The following image shows an API invoked through Postman with a Bearer Token authorization type and the token specified:

0 COMMENTS

We’d like to hear from you!