# Signed app identity with the qURL CLI

Source: https://qurl.link/signed-identity

---

CLI guide

# Let your app know who signed in.

qURL can send a signed user identity to your app after email verification. Enable it yourself with the CLI. No per-app setup by LayerV is needed.

1. ## Publish your app with email access<br>
Use [qURL CLI 4.5.0 or later](https://qurl.link/#cli) and a macOS or Linux shell. Keep your app listening on 127.0.0.1:3000\. Run this beside it, and keep this terminal open:<br>
```
qurl --version
qurl publish http://127.0.0.1:3000 --name "Identity demo" \
  --access email_capture --foreground -o json
```
Save the returned crid. If found\_existing is true, this is an existing resource; keep it after testing unless you intend to retire it. Open another terminal with the same CLI profile for the next steps. The Connector connects out; the app needs no public listening port.
2. ## Add identity verification to your app<br>
```
qurl whoami -o json
```
Use its owner\_id and your CRID in the [app integration guide](https://layerv.ai/docs/signed-identity/). Your app must verify the signature, issuer, audience, tenant and expiry on every request, and reject missing or invalid identity. It still controls app permissions.
3. ## Enable and share<br>
```
CRID='paste-your-crid'
qurl identity enable "$CRID"
qurl identity status "$CRID"
printf 'https://qurl.link/%s\n' "$CRID"
```
Status must report signed identity enabled. Open the printed address in your browser. Verify your email on the qURL access page. Your app then receives the signed X-QURL-Identity header on page and asset requests. Use the printed CRID address for this flow: qurl share creates device-authorized links.
4. ## Check it, then clean up<br>
```
qurl identity disable "$CRID"
qurl identity status "$CRID"
```
Reload the app. It must refuse requests while it requires signed identity. The switch does not remove access grants. To turn delivery back on:<br>
```
qurl identity enable "$CRID"
```
To remove this test share, press Ctrl+C in the publishing terminal, then run:<br>
```
qurl delete "$CRID"
```
Confirm deletion when asked. This retires the test CRID. For a hosted HTTPS app, secret origin headers, identity claims and key rotation, use the [enterprise integration guide](https://layerv.ai/docs/signed-identity/).
