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 Definitionssection from the left menu,Click the
Addicon in theSecurity Definitionssection to add a new security definition,Select
OAuth,

In
Introspection URLenter theCustom AppID APIendpoint, e.g. `https://api.<api region>.apiconnect.appdomain.cloud/<username>-dev/sb/custom-appid-api/introspect`, or the Node-REDPOST /introspectendpointhttps://<nodered-app-name>.<nodered-region>.cf.appdomain.cloud/introspectUnder
Flowselect typeApplication,

Enable Security
Jump to the
Securitysection from the left menu,Click the
Addicon to add a new security,Check the security option for OAuth that was added,

Browse to the
Sourcetab,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
Was this helpful?