login-credentials without RBAC (#173)
Co-authored-by: Michael Hoennig <michael@hoennig.de> Reviewed-on: https://dev.hostsharing.net/hostsharing/hs.hsadmin.ng/pulls/173 Reviewed-by: Marc Sandlus <marc.sandlus@hostsharing.net>
This commit is contained in:
		
							
								
								
									
										49
									
								
								doc/ideas/login-credentials-data-model.mermaid
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								doc/ideas/login-credentials-data-model.mermaid
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,49 @@ | ||||
| classDiagram | ||||
|     direction LR | ||||
|  | ||||
|     OfficePerson o.. "*" LoginCredentials | ||||
|     LoginCredentials "1" o-- "1" RbacSubject | ||||
|  | ||||
|     LoginContext "1..n" --o "1" LoginContextMapping | ||||
|     LoginCredentials "1..n" --o "1" LoginContextMapping | ||||
|  | ||||
|     class LoginCredentials{ | ||||
|         +twoFactorAuth: text | ||||
|         +telephonePassword: text | ||||
|         +emailAdress: text | ||||
|         +smsNumber: text | ||||
|         -active: bool [r/w] | ||||
|         -globalUid: int [w/o] | ||||
|         -globalGid: int [w/o] | ||||
|         -onboardingToken: text [w/o] | ||||
|     } | ||||
|  | ||||
|     class LoginContext{ | ||||
|         -type: Enum [SSH, Matrix, Mastodon, ...] | ||||
|         -qualifier: text | ||||
|     } | ||||
|  | ||||
|     class LoginContextMapping{ | ||||
|     } | ||||
|     note for LoginContextMapping "Assigns LoginCredentials to LoginContexts" | ||||
|  | ||||
|     class RbacSubject{ | ||||
|         +uuid: uuid | ||||
|         +name: text # == nickname | ||||
|     } | ||||
|  | ||||
|     class OfficePerson{ | ||||
|         +type: enum | ||||
|         +tradename: text | ||||
|         +title: text | ||||
|         +familyName: text | ||||
|         +givenName: text | ||||
|         +salutation: text | ||||
|     } | ||||
|  | ||||
|     style LoginContext fill:#00f,color:#fff | ||||
|     style LoginContextMapping fill:#00f,color:#fff | ||||
|     style LoginCredentials fill:#00f,color:#fff | ||||
|  | ||||
|     style RbacSubject fill:#f96,color:#fff | ||||
|     style OfficePerson fill:#f66,color:#000 | ||||
		Reference in New Issue
	
	Block a user