Skip to content
LogoLogo

addRequestCredentials

Require verifiable credentials to access the asset.

New in DDO v5, and the core of credential-gated access. Each entry names a credential type and the format it must be presented in.

See the identity guide for the consumer side.

Usage

import {  } from '@deltadao/nautilus'
 
.(., [ 
  { : 'VerifiableId', : 'jwt_vc_json' }, 
  { : 'UniversityDegree', : 'jwt_vc_json' } 
]) 

Each entry can carry its own policies, a policy name or { policy, args }, checked against that credential only. nautilus stores each one JSON-encoded ('signature' becomes '"signature"'), the form the policy server parses and the enterprise market writes; the policy server skips a per-credential policy that is not valid JSON.

{ type: 'gx:LegalPerson', format: 'jwt_vc_json', policies: ['signature'] }

Returns

The asset builder instance, to chain further calls with.