Skip to main content

connections

Creates, updates, deletes, gets or lists a connections resource.

Overview

Nameconnections
TypeResource
Idokta.apps.connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
_linksobjectSpecifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
authSchemestringA token is used to authenticate with the app. This property is only returned for the TOKEN authentication scheme.
baseUrlstringBase URL
profileobject
statusstringProvisioning connection status (default: DISABLED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_default_provisioning_connection_for_applicationselectsubdomainRetrieves the default provisioning connection for an app
update_default_provisioning_connection_for_applicationupdatesubdomainactivateUpdates the default provisioning connection for an app
activate_default_provisioning_connection_for_applicationexecsubdomainActivates the default provisioning connection for an app
deactivate_default_provisioning_connection_for_applicationexecsubdomainDeactivates the default provisioning connection for an app
verify_provisioning_connection_for_applicationexecsubdomaincode, stateVerifies the OAuth 2.0-based connection as part of the OAuth 2.0 consent flow. The validation of the consent flow is the last step of the provisioning setup for an OAuth 2.0-based connection.
Currently, this operation only supports office365,google, zoomus, and slack apps.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
subdomainstringThe domain of your organization. This can be a provided subdomain of an official okta domain (okta.com, oktapreview.com, etc) or one of your configured custom domains. (default: my-org)
activatebooleanActivates the provisioning connection
codestring
statestring

SELECT examples

Retrieves the default provisioning connection for an app

SELECT
_links,
authScheme,
baseUrl,
profile,
status
FROM okta.apps.connections
WHERE subdomain = '{{ subdomain }}' -- required;

UPDATE examples

Updates the default provisioning connection for an app

UPDATE okta.apps.connections
SET
-- No updatable properties
WHERE
subdomain = '{{ subdomain }}' --required
AND activate = {{ activate}}
RETURNING
_links,
authScheme,
baseUrl,
profile,
status;

Lifecycle Methods

Activates the default provisioning connection for an app

EXEC okta.apps.connections.activate_default_provisioning_connection_for_application 
@subdomain='{{ subdomain }}' --required;