Tutorial: Implementing OpenID Connect Security
This tutorial shows you how to add OpenID Connect capability to an existing native OAuth provider using API Manager.
About this tutorial
In this tutorial you will complete the following lessons:
Before you begin
In this tutorial you will implement and test OpenID Connect security. To complete this tutorial, you must have the following available:
- An existing published native OAuth provider. If you do not have an API available, complete the Tutorial: Implementing OAuth Security tutorial.
- An external application, such as cURL, used to send requests to the OAuth token provider endpoint.
Note: The Sandbox catalog must be configured to use either a DataPower® Gateway (v5
compatible) or a DataPower API
Gateway or both. See Creating and configuring Catalogs.
Add OIDC capability to an OAuth native provider
To add OIDC security to a native OAuth provider by using API Manager, complete the following steps:
Verify or create test application credentials
You will need the client ID and client secret for an application to test the OIDC functionality.
You obtained this information during the completion of the Tutorial: Creating a Client Application tutorial
listed in the Prerequisites.
Note: These steps are necessary only if you did not make note of the
credentials for the client application you previously created.
- Click the Applications icon
in the side bar.
- Click the v (down arrow) icon to display subscriptoions for the
AppOne application, and verify that the FindBranch auto product is listed.
- Click the Options icon
at the end of the AppOne row in the applications table. Select Credentials.
- Click Add.
- Copy both the Client ID and Client Secret (you need these values to obtain an OAuth token).
Click Create to add the new credentials to the AppOne application.
- Click the Back arrow until you see the Manage
page.
Test OIDC Security
Note: Due to Cross-Origin Resource Sharing (CORS)
restrictions, the assembly test tool cannot be used with the Chrome or Safari browsers on the macOS
Catalina platform.
To test the new OIDC security added to the API, complete the following steps:
What you did in this tutorial
In this tutorial, you completed the following activities:
- Added OpenID Connect security to an existing API.
- Tested the security.