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:
Property | Value |
---|---|
enabled | true |
name | {{YourAppName}} |
type | NATIVE_APP |
bundleId | com.example.something |
packageName | org.example.something |
This web application will use the OPENID_CONNECT
protocol. OpenID Connect applications require these additional OIDC properties:
Property | Value |
---|---|
grantTypes | IMPLICIT |
redirectUris | https://www.example.com |
responseTypes | TOKEN, ID_TOKEN |
tokenEndpointAuthMethod | NONE |
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
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |