このページは、まだ日本語ではご利用いただけません。翻訳中です。
Register an Application to a Service
Along with hosting API documentation, the Dev Portal can let your developers register applications against API products. Your applications can then consume those services using application-level authentication.
For example, the application can represent a mobile banking app and the services registered to the application can be a billing API, a users API, and a legal agreements API.
Prerequisites
-
An API product with at least one version.
-
The API product is productized in the Dev Portal.
- To use app registration, the Dev Portal must be protected by some sort of authentication. That means you can’t have a public portal for this step. If you set your Dev Portal to public, disable the setting and create a developer account.
Enable app registration
-
From the API Products, open an API product version.
-
Under App Registration select Disabled from the Actions dropdown menu.
-
Accept the
key-auth
setting, click the Auto-Approve toggle, then click Enable.Application registration uses key authentication (
key-auth
) by default. If you have integrated the Dev Portal with an IdP, you can also selectopenid-connect
. For the purpose of this example, we’re using the simplerkey-auth
option, which doesn’t required any external services.With Auto Approve enabled, any developers trying to register their applications against this service will be approved automatically. If you leave it off, you have to approve each registration request manually.
With app registration enabled, all versions of this service now include read-only entries for the
acl
andkey-auth
plugins, and the service is now available for registration from the Dev Portal.
Create an application
You can now link an application to a published service.
-
Log in to the Konnect Dev Portal.
You can always find your Dev Portal URL under the Dev Portal menu.
Remember, the Dev Portal doesn’t share credentials with your Konnect account.
-
In the Konnect Dev Portal, click My Apps from the dropdown menu in the upper right.
-
On the My Apps page, click the New App button.
-
Fill out the form with your application name, reference ID, and description. The reference ID must be unique.
-
Click Create to save and see your new application’s detail page.
Register the application
-
From your Dev Portal account, open the Catalog from the top menu and click on a service tile.
-
Choose the version of the API product you want to use and click Register.
If you don’t see the registration button, that means this version doesn’t have application registration enabled.
-
Select the application you want to register from the list.
-
Click Request Access.
This opens the application’s details page. If auto approval is enabled, it appears with the status
Approved
.
Generate a key auth credential
-
In the Authentication pane of the application detail page, click Generate Credential.
-
Test the generated credential by making a call to the service the application is registered with using your generated API key:
curl -i -X GET http://localhost:8000/mock \ -H 'apikey: {API_KEY}'
Use this key in any applications that need to access this product.
Summary and next steps
In this topic, you:
- Enabled application registration for the API product version.
- Created an application through the Dev Portal and registered it against your API product version.
- Generated an API key for the application and made a call using this key
You can learn more about application registration in the Kong Konnect Dev Portal documentation.
For next steps, check out some of the other things you can do in Kong Konnect:
- If you have existing Kong Gateway configuration you want to use, import Kong Gateway entities into Kong Konnect
- Enable plugins on a Gateway Service or a route
- Manage your teams and roles