Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
To get a delegation from Internet Identity, the Auth Client allowed the developer to initialize the client using an existing identity. However, since the delegation can target any public key, it can be useful to allow the client to accept a "partial" identity class without a private key.
Introduces the
PartialIdentity
andPartialDelegationIdentity
classes in@dfinity/identity
, which can now be passed intoAuthClient.create
This will be useful to remove the limitations such as adding an intermediary identity, as used by our deep link example: https://github.com/dfinity/examples/blob/c62de1a928fa0bf6b8fdbbbf0e0204e7cf5d6dfb/native-apps/unity_ii_applink/ii_integration_dapp/src/greet_frontend/src/index.js#L49
How Has This Been Tested?
New Unit tests
Checklist: