auth:ex2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
auth:ex2 [2007/02/26 17:22] – create bdefrain | auth:ex2 [2007/02/26 17:28] – bdefrain | ||
---|---|---|---|
Line 3: | Line 3: | ||
Extend your aspect to enforce an authenticated user when '' | Extend your aspect to enforce an authenticated user when '' | ||
- | To model the authentication, | + | To model the authentication, |
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: | ||
Line 28: | Line 28: | ||
As long as the user is not authenticated, | As long as the user is not authenticated, | ||
- | < | + | < |
while(role == null) | while(role == null) | ||
authenticate(); | authenticate(); | ||
</ | </ | ||
+ | |||
+ | After implementing the aspect, run the figure editor. You should be presented with the authentication dialog upon drawing the first point. Afterwards, new points can be added without interruption. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Continue with [[auth: |
auth/ex2.txt · Last modified: 2021/02/05 13:47 by 127.0.0.1