7 releases
0.2.6 | Aug 30, 2024 |
---|---|
0.2.5 | Aug 5, 2024 |
0.2.0 | Jul 30, 2024 |
#314 in Authentication
32 downloads per month
Used in 6 crates
(2 directly)
130KB
3K
SLoC
Argentum ToolKit User. An Business layer.
User workflow Overview
.Overview sequence diagram [plantuml, format="svg"]
@startuml
actor User as user
user -> reg: registration
reg --> user: mail
|||
user -> reg: confirmation \n(not implemented yet)
reg --> user: mail
|||
user -> login: login
login --> user: token
|||
user -> action: do something
action --> user: result
@enduml
Authentication
.Authentication sequence diagram [plantuml, format="svg"]
@startuml
actor user
participant Middleware as m
database "Token storage" as ts
user -> m
m -> ts: token
ts --> m: userId
m -> SomeController: userId + request
@enduml
Restore Password
.Restore password sequence diagram [plantuml, format="svg"]
@startuml
autonumber 1.1
actor User as u
participant system as s
participant Notificator as n
group Request Reset Token
u -> s: Request reset\n**password token**
s -> s: Generate token\nInvalidate previous token
s -> n: Send token
n --> u: Send token
end
autonumber 2.1
group Reset Password
u -> s: Send new **password**
s -> s: Change password\nInvalidate token
s -> n: Password was changed
n --> u: Password was changed
end
@enduml
Dependencies
~4.5–6.5MB
~114K SLoC