Skip to main content

ClaimConstraint

A constraint to apply to one claim in the verifiable credential. Choose one operator of values, contains or startsWith.

input ClaimConstraint {
claimName: String!
contains: String
startsWith: String
values: [String!]
}

Fields

ClaimConstraint.claimName ● String! non-null scalar

Name of the claim for the constraint. This is the claim name in the verifiable credential. See outputClaim in claimMapping type.

ClaimConstraint.contains ● String scalar

The constraint evaluates to true if the claim value contains the specified value.

ClaimConstraint.startsWith ● String scalar

The constraint evaluates to true if the claim value starts with the specified value.

ClaimConstraint.values ● [String!] list scalar

Set of values that should match the claim value. If you specify multiple values, like ["red", "green", "blue"] it is a match if the claim value in the credential has any of the values in the collection.

Member Of

AuthnRequestCredential input ● RequestCredential input