The lib_UserManager enables your projects to include user management and authentication in your apps. This library will handle :
- user login with user/password using a salted password security
- user login using OpenID
Mobile Application
Pages
Shared Actions
guardPages : Handles access control and redirection based on the user's authentication status and the page they are attempting to access
Handles access control and redirection based on the user's authentication status and the page they are attempting to access.
This shared action should be invoked from an AppGuard component.
Behavior:
- If the user is not authenticated and tries to access a page listed in
authorizedPagesOnlyWithAuthentication
, they will be redirected tounauthenticatedAccessRedirectPage
.- If the user is authenticated and tries to access a page listed in
authorizedPagesOnlyWithoutAuthentication
, they will be redirected toauthenticatedAccessRedirectPage
.- If the current page is not restricted based on the user's authentication status, no redirection occurs.
Variables
isAuthenticatedSession : Returns true if current session is authenticated
Returns true if current session is authenticated
SignIn : The `SignIn` function handles user authentication and remember me feature
The
SignIn
function handles user authentication and remember me featureVariables
name comment password
The user's password rememberMe
Stay logged in for an extended period, even after closing the browser user
The userID (user's email) Shared Components
ConfirmAccount
Variables
name comment appName
imgUrl
resetKey
Events
name comment PasswordChangedError
PasswordChangedOk
DeleteAccount
Variables
name comment appName
imgUrl
moretext
resetKey
Events
name comment PasswordChangedError
PasswordChangedOk
ForgotPassword
Variables
name comment appName
imgUrl
resetKey
Events
name comment PasswordChangedError
PasswordChangedOk
LoginComponent : This component handle a login / password form
This component handle a login / password form. And uses the lib_UserManager
The component will check user / password and if successful will autenticate the user. When the user is authenticated, the component will fire a 'login' event that you can handle with a SubscribeHandler. use this event to close a modal page or to push/root a new page when the user is authenticated
Variables
Events
name comment login
This event will be fired when a login occurs : Check out.error and out.message for login errors The out.user will be user logged in