User Tools

Site Tools


auth:ex2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
auth:ex2 [2007/02/26 17:27] bdefrainauth:ex2 [2007/02/26 17:28] bdefrain
Line 3: Line 3:
 Extend your aspect to enforce an authenticated user when ''@Authenticated'' methods or constructors are executed. Extend your aspect to enforce an authenticated user when ''@Authenticated'' methods or constructors are executed.
  
-To model the authentication, we will present the user with an input dialog where he/she can select the role. This is of course a simplification: in production, we would of course have to prompt for login and password and verify these against a password database.+To model the authentication, we will present the user with an input dialog where he/she can select the role. (This is of course a simplification: in production, we would of course have to prompt for login and password and verify these against a password database.)
  
 The code to manage the current role for the user and to present the authentication dialog is shown here: The code to manage the current role for the user and to present the authentication dialog is shown here:
auth/ex2.txt · Last modified: 2021/02/05 13:47 by 127.0.0.1