mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
Finish up claim design
This commit is contained in:
parent
32dcaa39ac
commit
8d8d5d02dd
|
@ -39,17 +39,20 @@ As a result of these scenarios this leads to the following required observations
|
|||
|
||||
This leads to a pseudo design such as:
|
||||
|
||||
class: claim
|
||||
name: claim_email
|
||||
claim_name: email
|
||||
member: account_1
|
||||
|
||||
class: claim
|
||||
name: claim_unused
|
||||
claim_name: unused
|
||||
|
||||
class: system, claim
|
||||
name: claim_interactive
|
||||
claim_name: interactive
|
||||
member: account_1
|
||||
|
||||
class: claim, claim_ephemeral
|
||||
name: claim_alter_self
|
||||
claim_name: alter_self
|
||||
claim_lifetime: 300 # seconds
|
||||
|
@ -59,7 +62,7 @@ This leads to a pseudo design such as:
|
|||
...
|
||||
primary_credential: {
|
||||
type: password|webauthn|password+webauthn
|
||||
claims: [ claim_alter_self, claim_interactive ]
|
||||
claims: [ claim_alter_self ] //note that interactive is implied
|
||||
}
|
||||
application_credentialn: {
|
||||
name: iphone imap password
|
||||
|
@ -75,7 +78,8 @@ claim:
|
|||
claims: [ email ]
|
||||
}
|
||||
|
||||
If we authenticate with the primary credential, the static claims are initially issued:
|
||||
If we authenticate with the primary credential, the static claims are initially issued, and because
|
||||
it's the primary token, we get the implied system interactive claim.
|
||||
|
||||
UserAuthToken {
|
||||
name; account_1
|
||||
|
@ -115,6 +119,10 @@ ACP's can then have filters such as:
|
|||
Eq('claim', 'alter_self')
|
||||
|
||||
|
||||
This implies that claim's are in schema to allow filter construction and validation, and in
|
||||
the protected module to prevent their creation.
|
||||
|
||||
|
||||
Questions
|
||||
---------
|
||||
|
||||
|
|
Loading…
Reference in a new issue