Add a Security Definition to your API
Create a Security Definition
To add OAuth security to your API in the Design editor,
Jump to the
Security Definitions
section from the left menu,Click the
Add
icon in theSecurity Definitions
section to add a new security definition,Select
OAuth
,
In
Introspection URL
enter theCustom AppID API
endpoint, e.g. `https://api.<api region>.apiconnect.appdomain.cloud/<username>-dev/sb/custom-appid-api/introspect`, or the Node-REDPOST /introspect
endpointhttps://<nodered-app-name>.<nodered-region>.cf.appdomain.cloud/introspect
Under
Flow
select typeApplication
,
Enable Security
Jump to the
Security
section from the left menu,Click the
Add
icon to add a new security,Check the security option for OAuth that was added,
Browse to the
Source
tab,A security definition should have been added to the Open API Spec source,
Or when using the Node-RED Test Server endpoints,
From the top right, select the save icon,
From the top right drop down menu, select the option
Add to existing products
, or if you do not have a product yet, select the optionGenerate a default product
,Select the product to add your API draft to,
Your API should now be protected by AppID using OAuth OIDC with
grant_type=password
,
Last updated