This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package identity
|
||||
|
||||
// Package identity contains stable boundary contract types for the identity semantic owner.
|
||||
@@ -0,0 +1,7 @@
|
||||
package identity
|
||||
|
||||
type CreatorSession struct {
|
||||
ActorID ActorID
|
||||
PrincipalID PrincipalID
|
||||
ExpiresAtUnix int64
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package identity
|
||||
|
||||
import "git.cin.su/m/Assistant/platform/ids"
|
||||
|
||||
type ActorID ids.ID
|
||||
type PrincipalID ids.ID
|
||||
type IdentityID ids.ID
|
||||
|
||||
// PrincipalBinding keeps the operational actor separate from the interest on
|
||||
// whose behalf it acts. A Creator is not exempt from this distinction.
|
||||
type PrincipalBinding struct {
|
||||
ActorID ActorID
|
||||
PrincipalID PrincipalID
|
||||
Active bool
|
||||
}
|
||||
Reference in New Issue
Block a user