#user #auth-token #user-token #account #business #user-login

argentum_user_account_business

Business layer of user account component

7 releases

0.2.6 Aug 30, 2024
0.2.5 Aug 5, 2024
0.2.0 Jul 30, 2024

#244 in Authentication

Download history 405/week @ 2024-07-29 157/week @ 2024-08-05 24/week @ 2024-08-12 14/week @ 2024-08-19 186/week @ 2024-08-26 26/week @ 2024-09-02 5/week @ 2024-09-09 14/week @ 2024-09-16 42/week @ 2024-09-23 15/week @ 2024-09-30 8/week @ 2024-10-07 15/week @ 2024-10-14 45/week @ 2024-11-04

61 downloads per month
Used in 6 crates (2 directly)

BSD-3-Clause

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
~115K SLoC