Happy !
mikefilonov / MozillaPersonaSeaside
Project infos
| License | MIT |
| Tags | persona, mozilla persona, seaside |
| Creation date | 2014-05-04 |
| Website | testimagestore.pharocloud.com |
Monticello registration
About MozillaPersonaSeaside
Seaside bindings for Mozilla Persona login/logoff buttons.
Simple usage:
renderContentOn: html
html heading level: 1; with: 'Mozilla Persona show case'.
html text: user. html break.
html anchor mpLoginButton; with: 'Login'. html break.
html anchor mpLogoutButton; with: 'Logout'.
"Rendering the watcher script"
(html brush: MPWatchBrush new)
audience: 'http://localhost:8080';
loggedInUser: user;
onSuccess: [ :userEmail | user := userEmail ]
onFail: [ forceLogout := true ];
onLogout: [ user := nil. forceLogout := false ].
"Force logout on fail to prevent infinite login loop"
html brush: (MPForceLogoutBrush new enabled: forceLogout)
