The goal of this knowledge article is to present how to create a Two Page Plugin App via API Call instead of using the Admin UI.
- Okta Classic
- Okta Identity Engine
- Two Page Plugin App
- API Call
- Postman
NOTE: The following scopes are required: okta.apps.read okta.apps.manage.
- Navigate to Apps (Okta API) collection in the Postman environment.
- Expand the Add Application folder.
- Select the POST Add SWA App.
- Right-click and select Duplicate.
- Click the Body tab of the new POST Add SWA App Copy call and replace its content with:
{
"name": "template_swa_two_page",
"label": "Two Page Plugin App",
"signOnMode": "SECURE_PASSWORD_STORE",
"settings": {
"app": {
"url": "https://example.com/login.html",
"passwordField": "txtbox-password",
"passwordUrl": "Password page URL",
"usernameField": "txtbox-username",
"nextButton": "#next",
"submitButton": "#submitbutton"
}
}
}
6. Modify the values for the application and click Send.
