Skip to content

fix: update unity_ii_deeplink code references in IAM security guide#312

Merged
marc0olo merged 2 commits into
mainfrom
fix/unity-ii-deeplink-code-references
Jul 13, 2026
Merged

fix: update unity_ii_deeplink code references in IAM security guide#312
marc0olo merged 2 commits into
mainfrom
fix/unity-ii-deeplink-code-references

Conversation

@marc0olo

Copy link
Copy Markdown
Member

Summary

The IAM security guide references specific lines in the unity_ii_deeplink example to illustrate the double-delegation pattern. Those references pointed to a file that no longer exists (ii_integration_dapp/src/greet_frontend/src/index.js) because the example was migrated to icp-cli in dfinity/examples#1440.

This PR updates all five bullet points under the "For more information" section (lines 244–249) to the new paths and correct line numbers:

  • Middle key generation: ii-bridge/src/main.js#L84 (ECDSAKeyIdentity.generate())
  • Auth with middle key: ii-bridge/src/main.js#L88-L89 (passing middleKeyIdentity to AuthClient)
  • Delegation chain creation: ii-bridge/src/main.js#L102-L108 (DelegationChain.create with previous: middleIdentity.getDelegation())
  • URI fragment callback: ii-bridge/src/main.js#L130-L133 — clarified that the example uses a custom URL scheme by default, with a link to the README for upgrading to Android App Links / iOS Universal Links for production
  • Verification in mobile app: unity_project/Assets/Scripts/DeepLinkPlugin.cs#L92-L98 — this is now implemented; replaces the stale "currently being improved" note

Dependencies

⚠️ Merge after dfinity/examples#1440. The linked code lines point to master in the examples repo. Until that PR merges the paths and line numbers will not exist on master.

Test plan

The example was migrated from dfx to icp-cli (dfinity/examples#1440).
The ii-bridge frontend moved from
  ii_integration_dapp/src/greet_frontend/src/index.js
to
  ii-bridge/src/main.js

Update all five bullet-point references:
- Middle key generation: main.js#L84
- Auth with middle key: main.js#L88-L89
- Delegation chain creation: main.js#L102-L108
- URI fragment callback: main.js#L130-L133 (clarify it uses a custom
  URL scheme by default, with a link to the README for upgrading to
  Android App Links / iOS Universal Links)
- Delegation chain verification: DeepLinkPlugin.cs#L92-L98 (now
  implemented; replaces the stale "currently being improved" note)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@marc0olo marc0olo requested a review from a team as a code owner July 13, 2026 19:17
- Replace two em-dashes with colons per writing guidelines
- Update DeepLinkPlugin.cs line reference from L92-L98 to L105-L111;
  the verification block shifted after the null guard was added to
  Start() in a subsequent commit
@marc0olo marc0olo merged commit f95a77f into main Jul 13, 2026
7 checks passed
@marc0olo marc0olo deleted the fix/unity-ii-deeplink-code-references branch July 13, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants