Prerequisites for Creating a Connection
You must satisfy the following prerequisites to create a connection to use the Authorization Code Credentials security policy or JWT User Assertion for OAuth security policy with the GCP Pub Sub Adapter.
Use Authorization Code Credentials Security Policy
You must satisfy the following prerequisites to create a connection with the Authorization Code Credentials security policy.
- Create a project ID in the Google Cloud console, see Create a Google Cloud Project.
- Register a web application in the Google Cloud console and obtain
the client ID and client secret. See OAuth client ID
credentials.
Note:
You must enter the client ID in the Google Client ID field and the secret key in the Google Client Secret field on the Connections page. See Configure Connection Security.
Use JWT User Assertion for OAuth Security Policy
You must satisfy the following prerequisites to create a connection with the JWT User Assertion for OAuth security policy.
- Create a service account in the Google Cloud console and add keys to
the respective service account. See Create Service
Accounts.
Note:
The service account must have List Topic permissions.
Import Private Keys for the JWT User Assertion for OAuth Security Policy
- Go to Key section in the service account.
- Click Add Key.
- Select the JSON option, and click Create. After creating the new key file, it gets downloaded in JSON format.
- Store the file safely because it contains account-related
information and may not be reproducible.
This JSON file contains the private key and the client_x509_cert_url provides you with the link for the certificate.
- Copy the private key from the JSON file and paste it to a new
file. Format the private key file by replacing every occurrence of
/n
with new lines. Save the file with a.pem
extension. This formatted key file is the certificate.Note:
Keep the private key (certificate) together in a text file. Save the certificate file with a.pem
extension (for example,GCPSignKey.pem
). - Follow these steps to upload the certificate in Oracle Integration:
- In the navigation pane, click Settings, then Certificates..
- Click Upload.
- Provide the alias name.
- Select the type as Signing Key.
- Keep the category as Private.
- Upload the
.pem
file you created. - Click Upload.