Onboard a broker
This tutorial walks you through how to onboard a broker that you can use to connect a pricing plan to your third-party service. When users create instances of your service from the IBM Cloud® catalog, the broker manages the lifecycle of those instances, and connects the service to the applications that developers are building.
This tutorial is one of five in a series that demonstrates how to onboard and publish a third-party service to IBM Cloud. As you complete the tutorial, adjust each step to fit your product's needs.
Before you begin
-
For an example of how to build your broker, see IBM Cloud reference broker.
-
Make sure that you have the following API keys:
- An onboarding API key for access to the Global Catalog API.
- An IBM Cloud API key for access to your deployment target.
For more information, see Managing API keys.
Add your broker
-
In the IBM Cloud console, click the Navigation Menu icon > Partner Center > My products.
-
Select the service that you're onboarding.
-
From the Brokers page, click Add broker.
-
Enter the programmatic name for your broker and the URL at which your broker is reachable.
-
Select the authentication scheme to use when verifying the identity of the client that interacts with the broker. You can select from basic, bearer, and bearer cloud resource name (CRN) schemes.
Basic credentials-based authentication is deprecated and will no longer be supported in the future due to security reasons. Use bearer authentication for continued access instead.
-
Select the broker type.
-
Enter the username for broker authentication. If you selected bearer authentication in the previous step,
apikey
is automatically entered for you as a username. -
Enter the password for broker authentication. If you selected bearer authentication, enter the API key.
For the bearer CRN authentication scheme, username and password information are not needed.
-
Click Save.
Authentication schemes for brokers
When you add a broker in Partner Center, you can select from the following three authentication schemes to verify the identity of the client that interacts with the broker:
- Basic
- Basic authentication involves providing a username and a password, which are sent with each request to verify the client's identity. This method is less secure and not recommended as the credentials are sent repeatedly with every request.
- Bearer
- This is a token-based authentication method, in which you provide
apikey
as the username, and the API key value as the password. After providing this information, the resource controller exchanges the API key to a JWT token. Then, the token gets passed to the broker where the broker validates the user identity and whether the token is valid. - Bearer CRN
- In this method, the resource controller generates an IAM token with the identity of the broker CRN it is connecting to. Services authorize the call in their broker application by verifying that the identity of the caller matches the CRN of their respective broker. No API key and API key rotation are required in this method.
Set up IBM Cloud SSO
You can enable IBM Cloud single sign-on for your service and add any redirect URLs that can handle authentication and authorization.
-
In the IBM Cloud console, click the Navigation Menu icon > Partner Center > My products.
-
Select the service that you're onboarding.
-
From the Brokers page, click Set up IBM Cloud SSO.
-
Add team members as owners of the Client ID. Owners can view and edit the Client ID. You can't remove yourself from the list of owners.
-
Click Add to add a redirect URL.
-
Enter the redirect URL that can handle the authentication and authorization of your service.
-
Click Save.
-
Copy your Client ID and secret. After you close the IBM Cloud SSO panel, you can't view your secret. If the secret is lost, you must create a new Client ID.
-
Click Done. You must copy or show the secret to complete this action.
Next steps
You can now add your pricing plan.