Designer 10.7 | webMethods Service Development Help | Working with REST API Descriptors | Swagger-Based Provider REST API Descriptors | Working with Security Definitions | Adding a Security Definition
 
Adding a Security Definition
You can add security definition in the RAD.
*To add a security definition
1. In the Package Navigator view, lock and open the RAD to which you want to add a security definition.
2. Click the Security Definitions tab.
3. Click on the RAD editor toolbar or on the RAD toolbar, right-click in the Security Definitions tab and select Add a Security Definition.
4. In the Add Security Definition dialog box, choose any one of the following security definition type.
*Basic Auth
*OAuth
Choosing Basic Auth
a. Enter a name and description for the security definition.
b. Click Finish.
Designer adds the security definition to the RAD.
c. Click File > Save.
Choosing OAuth
a. Enter a name and description for the security definition.
b. Click Next.
c. In the OAuth Security Definition wizard, select any one of the following OAuth flow type and click Next.
*implicit
*password
*application
*accessCode
d. In the OAuth Security Definition wizard, specify the details for the OAuth security definition type based on the selected flow type.
Flow Type
Security Definition Type
Operation
implicit
Authorization Url
Define the scopes for the selected OAuth flow type.
*Click to add a scope randomly.
*Click to insert a scope at a particular position. Select any scope and click to insert the new scope after the selected one.
*Click to remove a scope. Select any scope and click .
password
Token Url
application
Token Url
accessCode
Authorization Url
Token Url
Authorization Url: The authorization URL to be used for this flow type. This must be in the form of a URL.
Token Url: The token URL to be used for this flow type. This must be in the form of a URL.
e. Click Finish.
Designer adds the security definition to the RAD.
f. Click File > Save.