![]() They are, first and foremost, for illustration of how to make sequence diagrams. Please do not base your implementation on these diagrams. Restricted Area Controller->-Web Server: Response Note right of Restricted Area Controller: role verified ![]() Session Manager->-Restricted Area Controller: Session role Session Manager->+Database: Query session role by session id Restricted Area Controller->+Session Manager: Validate Session (with session id) Note right of Restricted Area Controller: session id taken from cookie Web Server->+Restricted Area Controller: Call Controller Web Server->-Client: Response (cookie with session id)Īnd finally something like this: title Access to Restricted AreaĬlient->+Web Server: Request restricted area (with cookie) Login Controller->-Web Server: Response (cookie with session id) Session Manager->-Login Controller: Unique session id Session Manager->+Database: Insert session id and role Note right of Session Manager: generate unique session id Login Controller->+Session Manager: Create session for role Session Manager->-Login Controller: User valid Note right of Session Manager: Compute hash of Password with salt and compare Session Manager->+Database: Retrieve password hash (and salt) and role by Usernameĭatabase->-Session Manager: Hash (and salt) and role Login Controller->+Session Manager: Validate user Web Server->+Login Controller: Call Controller Then something like this: title Authentication SequenceĬlient->+Web Server: Send Username and Password Web Server->-Client: Response (login form) Login Controller->-Web Server: Response (login form) ![]() ![]() Web Server->+Login Controller: Call controller You want something like this (code for ): title Login Request You do not have a home page actor, you have a controller. Those should be calls (with activation boxes) that return. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |