- Create an application
Creates a new application in Access Gateway.
Newly created applications have the CREATED status. To make the application available for end users, you must configure the required settings of an application, and then activate the application.
Ensure that you've configured the following settings of your application:
- Create at least one protected resource.
- Create at least one policy.
- Create at least one attribute (not required for
OAG_NOAUTHapplications).
Session, behavior and health check configurations are created by default for all applications. Update these configurations as needed.
This endpoint also creates the default attributes and policies for the application based on the application type specified. To disable creating default attributes and policies, set the useDefaultHeadersAndPolicies property to false in the request body.
After creating an application, view the application details in the response. The _embedded property includes all the default configurations created for the application (session, behavior, health check, attributes, and policies).
Array of group IDs from your Okta org that are granted access to the application
The name of the application, and also the tile name in your Okta tenant. The label must be unique.
Application type. This property is immutable after it's created. It's not required, but if you include it in a request body, it must match the application's type. A different value returns an HTTP 400 error.
| Enum Value | Description |
|---|---|
| OAG_HEADER_BASED | Applications that use header-based authentication. Access Gateway passes user attributes in HTTP headers to the application, which uses these attributes to identify the user and manage sessions. |
| OAG_ADMINUI | The Access Gateway Admin UI, which is the interface that admins use to manage Access Gateway. |
| OAG_NOAUTH | Applications that don't require authentication. Use this type to manage access to public resources or to test Access Gateway functionality without authentication. |
| OAG_SAMPLE_COOKIE | A sample application that demonstrates cookie-based authentication. |
| OAG_SAMPLE_HEADER | A sample application that demonstrates header-based authentication. |
| OAG_SAMPLE_POLICY | A sample application that demonstrates policy enforcement. |
| OAG_SAMPLE_WIKIPEDIA | A sample application preconfigured to provide access to Wikipedia with header-based authentication. |
| ORACLE_ACCESSGATE | Oracle Access Gateway applications. |
| ORACLE_AGILE_PLM | Oracle Agile Product Lifecycle Management (PLM) applications. |
| ORACLE_APPLICATION_EXPRESS | Oracle Application Express (APEX) applications. |
| ORACLE_DEMANTRA | Oracle Demantra applications. |
| ORACLE_HCM_CLOUD | Oracle Human Capital Management (HCM) Cloud applications. |
| ORACLE_HYPERION | Oracle Hyperion applications. |
| ORACLE_JDE | Oracle JD Edwards EnterpriseOne (JDE) applications. |
| ORACLE_OBIEE | Oracle Business Intelligence Enterprise Edition (OBIEE) applications. |
| ORACLE_PEOPLESOFT | Oracle PeopleSoft applications. |
| ORACLE_WEBCENTER | Oracle WebCenter applications. |
| ORACLE_WEBLOGIC | Oracle WebLogic Server applications. |
| OAG_SAML | |
| OAG_OIDC |
Indicates whether Access Gateway attempts to rewrite redirects and URLs in an app's HTML content
The value of the host header that's passed to the back-end protected web resources. It uses the fully qualified external name.
Indicates whether the application is load balanced. If loadBalanced is true, you can distribute the request load for an application across multiple servers.
Indicates whether local network access restriction is enabled. If localNetworkAccessRestriction is true, Access Gateway only allows proxy requests from local network IP addresses.
Maximum file upload size allowed by the application, in megabytes (MB). The default value is 1 (1 MB). Setting it to 0 (zero) allows for an unlimited file upload size.
The default URL that end users are directed to after they sign in
Defines a timeout in seconds for reading a response from the proxied server. The timeout counter takes effect only between two successive read operations, not for the transmission of the whole response. If the proxied server doesn't transmit anything within this time, the connection is closed.
Indicates whether the application is a proxy redirect application. If proxyRedirect is true, Access Gateway redirects the browser to the protected resource URL.
The URL of the domain that's entered by users to gain access to this application. The domain must be registered with a domain registrar.
Indicates whether the application sends a host header to the protected resource.
- If it's set to
true, Access Gateway uses the public domain name as the host header value. - If it's set to
false, Access Gateway uses thehostHeaderValueas the host header value ifhostHeaderValueis specified. - If it's set to
falseandhostHeaderValueisn't specified, Access Gateway uses the protected resource hostname as the host header value.
Create default attributes and policies in the application based on the application template for the provided application type. If this property is set to false, you must create attributes and policies manually after the application is created. This property is not applicable for SAML applications.
- https://oag.domain.tldhttps://oag.domain.tld/api/v2/apps
curl -i -X POST \
https://oag.domain.tld/api/v2/apps \
-H 'Content-Type: application/json' \
-d '{
"type": "OAG_HEADER_BASED",
"label": "Test App",
"description": "Header site",
"idpId": "3f63f461-c7fc-483b-b2ae-961633d251ac",
"publicDomain": "oagapp.domain.tld",
"postLoginUrl": "https://oagapp.domain.tld/landing",
"groups": [
"00ghsrbfqxmSf7Ekw1d7"
],
"certificateId": "15cc2bc6-b280-4d94-a0bf-c91751b40d9c",
"loadBalanced": true,
"usePublicDomainAsHostHeader": false,
"hostHeaderValue": "app.domain.tld",
"contentRewrite": false,
"proxyRedirect": false,
"maxFileSize": 4000,
"proxyReadTimeout": 30,
"localNetworkAccessRestriction": false,
"debug": true
}'Application created successfully
Array of group IDs from your Okta org that are granted access to the application
The name of the application, and also the tile name in your Okta tenant. The label must be unique.
Application type. This property is immutable after it's created. It's not required, but if you include it in a request body, it must match the application's type. A different value returns an HTTP 400 error.
| Enum Value | Description |
|---|---|
| OAG_HEADER_BASED | Applications that use header-based authentication. Access Gateway passes user attributes in HTTP headers to the application, which uses these attributes to identify the user and manage sessions. |
| OAG_ADMINUI | The Access Gateway Admin UI, which is the interface that admins use to manage Access Gateway. |
| OAG_NOAUTH | Applications that don't require authentication. Use this type to manage access to public resources or to test Access Gateway functionality without authentication. |
| OAG_SAMPLE_COOKIE | A sample application that demonstrates cookie-based authentication. |
| OAG_SAMPLE_HEADER | A sample application that demonstrates header-based authentication. |
| OAG_SAMPLE_POLICY | A sample application that demonstrates policy enforcement. |
| OAG_SAMPLE_WIKIPEDIA | A sample application preconfigured to provide access to Wikipedia with header-based authentication. |
| ORACLE_ACCESSGATE | Oracle Access Gateway applications. |
| ORACLE_AGILE_PLM | Oracle Agile Product Lifecycle Management (PLM) applications. |
| ORACLE_APPLICATION_EXPRESS | Oracle Application Express (APEX) applications. |
| ORACLE_DEMANTRA | Oracle Demantra applications. |
| ORACLE_HCM_CLOUD | Oracle Human Capital Management (HCM) Cloud applications. |
| ORACLE_HYPERION | Oracle Hyperion applications. |
| ORACLE_JDE | Oracle JD Edwards EnterpriseOne (JDE) applications. |
| ORACLE_OBIEE | Oracle Business Intelligence Enterprise Edition (OBIEE) applications. |
| ORACLE_PEOPLESOFT | Oracle PeopleSoft applications. |
| ORACLE_WEBCENTER | Oracle WebCenter applications. |
| ORACLE_WEBLOGIC | Oracle WebLogic Server applications. |
| OAG_SAML | |
| OAG_OIDC |
Indicates whether Access Gateway attempts to rewrite redirects and URLs in an app's HTML content
The value of the host header that's passed to the back-end protected web resources. It uses the fully qualified external name.
Indicates whether the application is load balanced. If loadBalanced is true, you can distribute the request load for an application across multiple servers.
Indicates whether local network access restriction is enabled. If localNetworkAccessRestriction is true, Access Gateway only allows proxy requests from local network IP addresses.
Maximum file upload size allowed by the application, in megabytes (MB). The default value is 1 (1 MB). Setting it to 0 (zero) allows for an unlimited file upload size.
The default URL that end users are directed to after they sign in
Defines a timeout in seconds for reading a response from the proxied server. The timeout counter takes effect only between two successive read operations, not for the transmission of the whole response. If the proxied server doesn't transmit anything within this time, the connection is closed.
Indicates whether the application is a proxy redirect application. If proxyRedirect is true, Access Gateway redirects the browser to the protected resource URL.
The URL of the domain that's entered by users to gain access to this application. The domain must be registered with a domain registrar.
Indicates whether the application sends a host header to the protected resource.
- If it's set to
true, Access Gateway uses the public domain name as the host header value. - If it's set to
false, Access Gateway uses thehostHeaderValueas the host header value ifhostHeaderValueis specified. - If it's set to
falseandhostHeaderValueisn't specified, Access Gateway uses the protected resource hostname as the host header value.
{ "id": "44931df2-4464-4c4d-97ce-5d0177b09f30", "name": "testapp", "type": "OAG_HEADER_BASED", "description": "Header site", "label": "Test App", "idpId": "3f63f461-c7fc-483b-b2ae-961633d251ac", "publicDomain": "oagapp.domain.tld", "status": "CREATED", "postLoginUrl": "https://oagapp.domain.tld/landing", "groups": [ "00ghsrbfqxmSf7Ekw1d7" ], "certificateId": "15cc2bc6-b280-4d94-a0bf-c91751b40d9c", "loadBalanced": true, "usePublicDomainAsHostHeader": false, "hostHeaderValue": "app.domain.tld", "contentRewrite": false, "proxyRedirect": false, "maxFileSize": 4000, "proxyReadTimeout": 30, "localNetworkAccessRestriction": false, "_embedded": { "healthCheck": { … }, "behavior": { … }, "session": { … }, "protectedResources": [ … ], "policies": [ … ], "attributes": [ … ] } }