Step 1: Create a web application

POST {{apiPath}}/environments/{{envID}}/applications

The POST /environments/{{envID}}/applications/ creates a new application resource in the specified environment. To define a Web application, you need to specify the following base application attributes:

PropertyValue
enabledtrue
name{{YourAppName}}
typeWEB_APP

This web application will use the OPENID_CONNECT protocol. OpenID Connect applications require these additional OIDC properties:

PropertyValue
grantTypesAUTHORIZATION_CODE
redirectUrishttps://www.example.com
responseTypesCODE
tokenEndpointAuthMethodCLIENTSECRETBASIC

Request Body

{"enabled"=>true, "name"=>"a_WebAppWithMFA", "description"=>"This is an OIDC Web application.", "type"=>"WEB_APP", "protocol"=>"OPENID_CONNECT", "grantTypes"=>["AUTHORIZATION_CODE"], "redirectUris"=>["{{webAppUrl}}"], "responseTypes"=>["CODE"], "tokenEndpointAuthMethod"=>"CLIENT_SECRET_BASIC"}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring