Step 1: Create a native application

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

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

PropertyValue
enabledtrue
name{{YourAppName}}
typeNATIVE_APP
bundleIdcom.example.something
packageNameorg.example.something

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

PropertyValue
grantTypesIMPLICIT
redirectUrishttps://www.example.com
responseTypesTOKEN, ID_TOKEN
tokenEndpointAuthMethodNONE

Request Body

{"enabled"=>true, "name"=>"nativeAppWithMFA_{{$timestamp}}", "description"=>"This is an OIDC native application.", "type"=>"NATIVE_APP", "protocol"=>"OPENID_CONNECT", "responseTypes"=>["TOKEN", "ID_TOKEN"], "grantTypes"=>["IMPLICIT"], "tokenEndpointAuthMethod"=>"NONE", "redirectUris"=>["https://www.example.com"], "bundleId"=>"com.example.something1", "packageName"=>"org.example.hyphenated_name1"}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring