Skip to main content

federated_claims

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

Overview​

Namefederated_claims
TypeResource
Idokta.apps.federated_claims

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the claim to be used in the produced token (example: role)
expressionstringThe Okta Expression Language expression to be evaluated at runtime (example: appuser.entitlements.role)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_federated_claimselectappId, claimId, subdomainRetrieves a federated claim by claimId
list_federated_claimsselectappId, subdomainLists all federated claims for your app
create_federated_claiminsertappId, subdomainCreates a claim that will be included in tokens produced by federation protocols (for example: OIDC id_tokens or SAML Assertions)
replace_federated_claimreplaceappId, claimId, subdomainReplaces a claim that will be included in tokens produced by federation protocols (for example: OIDC id_tokens or SAML Assertions)
delete_federated_claimdeleteappId, claimId, subdomainDeletes a federated claim by claimId

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
appIdstringApplication ID
claimIdstringThe unique id of the federated claim (example: ofc2f4zrZbs8nUa7p0g4)
subdomainstring(default: my-org)

SELECT examples​

Retrieves a federated claim by claimId

SELECT
name,
expression
FROM okta.apps.federated_claims
WHERE appId = '{{ appId }}' -- required
AND claimId = '{{ claimId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;

INSERT examples​

Creates a claim that will be included in tokens produced by federation protocols (for example: OIDC id_tokens or SAML Assertions)

INSERT INTO okta.apps.federated_claims (
expression,
name,
appId,
subdomain
)
SELECT
'{{ expression }}',
'{{ name }}',
'{{ appId }}',
'{{ subdomain }}'
RETURNING
id,
name,
created,
expression,
lastUpdated
;

REPLACE examples​

Replaces a claim that will be included in tokens produced by federation protocols (for example: OIDC id_tokens or SAML Assertions)

REPLACE okta.apps.federated_claims
SET
expression = '{{ expression }}',
name = '{{ name }}'
WHERE
appId = '{{ appId }}' --required
AND claimId = '{{ claimId }}' --required
AND subdomain = '{{ subdomain }}' --required
RETURNING
id,
name,
created,
expression,
lastUpdated;

DELETE examples​

Deletes a federated claim by claimId

DELETE FROM okta.apps.federated_claims
WHERE appId = '{{ appId }}' --required
AND claimId = '{{ claimId }}' --required
AND subdomain = '{{ subdomain }}' --required
;