In about ten minutes you will ask the project from Your first assertion
which region a synthetic person lives in, and read north from a verified response. Then you will
see why no other answer could have come back: the project lists every value the answer may take.
Outcome
A verified residence-region assertion carrying one declared value.
Time
About 10 minutes
Level
Local development with synthetic data
Prerequisites
The project, source, and run left going by Your first assertion
For the local commands in this tutorial, declare development in your shell.
rstack dev sets this value for the processes it starts.
Work in first-evidence-assertion/adult-status, where the source and the run from
Your first assertion are still going, in the terminal that holds its run_id, evidence_url,
runtime_config and headers_for. Prepare a request for the residence-region assertion
definition:
In a new terminal, read the run back from run.json and redefine the helper that fetches a token
header file:
In evidence.yaml, the residence-region definition’s region output is a
controlled-category: values lists every value it may carry.
evidence.yaml
outputs:
region:
concept: urn:example:concept:residence-region:v1
type: controlled-category
values:
- north
- south
A Function that computed any other value would not get it
past Registry Evidence. One fixture case proves that by returning a value outside the list; run the
region fixtures with their trace:
The same definition sets a grantCeiling, the grant ceiling: the widest authority any grant may give for it:
evidence.yaml
purpose: residence-check
grantCeiling:
authorities:
- organizational
actorKinds:
- service
valueOrigins:
- request
audiences:
- urn:example:audience:standalone-app
dev-authority.yaml grants one exact request shape within it, to the standalone-service
access profile, for a deployment. The run reads this file through local-target.yaml, and
caller’s token carries the profile’s tag, standalone-service:
dev-authority.yaml
- definition: residence-region
purpose: residence-check
audienceFrom: authenticated-requester
representations:
- signed-jws
subjectBinding: audience-scoped
subjects:
- role: subject
selectorProfile: record-by-id
valueOrigin: request
Leave the source and the run going; the next tutorial continues with them.
You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.