-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): identity aliases #1094
base: master
Are you sure you want to change the base?
Conversation
crates/primitives/src/alias.rs
Outdated
.ok_or(InvalidAlias( | ||
"alias exceeds maximum length of 50 characters", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not make this into an enum variant?
|
||
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)] | ||
#[cfg_attr(feature = "borsh", derive(BorshSerialize, BorshDeserialize))] | ||
pub struct IdentityAlias(Key<(Kind, Scope, Alias)>); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this shouldn't be named IdentityAlias
since it may represent context, identity or application
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, my logic was "Identity
" in the sense it could be context identity
, application identity
, identity
...
Do you have any suggestions?
HashAlias
? NameAlias
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pub struct IdentityAlias(Key<(Kind, Scope, Alias)>); | |
pub struct Alias(Key<(Kind, Scope, Name)>); |
E2E tests reportScenario: kv-store
|
Introduce aliases for user identities and context id's
Test plan
TBD
Documentation update
Will need docs and e2e test updates.