Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:3400_how_to:0600_users_and_login [2022/08/18 12:28] – ↷ Page moved from documentation:3400_how_to:0600_users_and_login to docs:3400_how_to:0600_users_and_login administrator | docs:3400_how_to:0600_users_and_login [2026/04/01 01:07] (current) – aware_support3 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Users And Login ====== | ====== Users And Login ====== | ||
| - | {{simplenavi> | + | {{simplenavi> |
| + | |||
| + | < | ||
| + | <panel type=" | ||
| + | If your application is a multi-user application and you want to control access of these users to the application then you have to do the following: | ||
| + | |||
| + | - When configuring the application make sure that it has the access level that users will be working at (see the “[[docs: | ||
| + | - Make sure that the default visual perspective for the Administrator access level includes the menu item of the Create Object type that allows creating instances of the predefined RegularUser business object (// | ||
| + | - Make sure that the default visual perspective for the user access level does not allow creating the RegularUser business object, but does include the menu item of the Change Login Details type that allows users to change their initial login name and password. | ||
| + | - Once the application has been configured and published the system administrator has to log in the operation mode using the administrator password (see the Full User Login, Interactive entry in the “[[docs: | ||
| + | - Once inside the Operation Mode the system administrator has to create instances of the RegularUser object – one instance per user. When creating instances of the '' | ||
| + | - Users can now log into the system using the assigned login names and password and then change these initial values using the menu item of the Change Login Details type. The users should not be able to change the value of access level assigned by the system administrator. | ||
| + | If you want to assign additional attributes to the system users (for example, their personal details) you can add attributes to the '' | ||
| + | </ | ||
| + | |||
| + | <panel type=" | ||
| + | Most users have to log into the application in the operation mode before they can start using it (this includes system administrators as well). The only exception is “guest” users that can work with the system without having to log in (“guest users”, however, are heavily restricted in what they can do with the system). The standard way of logging into the system, which should be used by most users, is described in the table of “[[docs: | ||
| + | </ | ||
| + | |||
| + | <panel type=" | ||
| + | The initial password for users of the application can be set up by the system administrator – see [[docs: | ||
| + | </ | ||
| + | |||
| + | <panel type=" | ||
| + | // | ||
| + | |||
| + | If you want to create additional users of the Configuration Tool you have to do the following: | ||
| + | |||
| + | - Log into the system in the Operation Mode using the credentials of the default user (you do not have to configure anything for this – use the default configuration provided by // | ||
| + | - Use Create Object menu item in the Standard folder to create instances of the RegularUser business object – one instance per configurator. When creating the instances you have to set the values for the following attributes – login name, password and access level. Set the login name and assign initial value to the password attribute (the password can be changed later by the configurators). Make sure that access level is set to '' | ||
| + | - The configurators can now log into the Configuration Tool using the specified credentials. | ||
| + | </ | ||
| + | |||
| + | <panel type=" | ||
| + | // | ||
| + | </ | ||
| + | |||
| + | <panel type=" | ||
| + | If you make your application widely available over the Internet you may want to allow non-registered users to access the application too, i.e. allow access to those users who do not have to login. Such users can enter the system using the URL described in the " | ||
| + | </ | ||
| + | |||
| + | <panel type=" | ||
| + | Make sure that you include menu item of the Register User type into the visual perspective for the Guest access level – see [[docs: | ||
| + | </ | ||
| + | |||
| + | <panel type=" | ||
| + | You can use LoggedIn prefix – see the “[[docs: | ||
| + | |||
| + | <code aim>IF LoggedInLibraryMember.LoginName ='john smith' THEN ... </ | ||
| + | </ | ||
| + | |||
| + | <panel type=" | ||
| + | This is explained in the “[[docs: | ||
| + | </ | ||
| + | |||
| + | <panel type=" | ||
| + | Your application may need to provide the “forgotten password” functionality. Usually this functionality asks the user one or more security questions and then compares their answers with predefined values. Then the system either tells/ | ||
| + | |||
| + | - Define a process that would handle this functionality – ask the user the security questions, compare answers, set new password etc | ||
| + | - Tick the “Handles forgotten password” functionality checkbox when defining the process | ||
| + | - Use the login form that includes the link that invokes the “forgotten process” functionality. The name of the predefined form is '' | ||
| + | |||
| + | <code aim> | ||
| + | |||
| + | The link will automatically start the process that is marked as “handles forgotten password” functionality. | ||
| + | </ | ||
| + | |||
| + | <panel type=" | ||
| + | If you want your users to be able to login to AwareIM automatically using their existing Facebook, Twitter or Google accounts you need to do the following: | ||
| + | |||
| + | - Register your application as Facebook, Twitter or Google developer (see [[docs: | ||
| + | - In the Configuration Tool double click on the business space version you want to change and then select the Login Options property from the list of properties. | ||
| + | - Tick the corresponding checkbox to allow login via a particular account, for example Allow Login via Facebook | ||
| + | - Click on the Settings button next to the tickbox. | ||
| + | - Enter the application id and secret obtained from step 1. | ||
| + | - Alternatively go to the '' | ||
| + | Then specify these attributes in the Settings dialog. | ||
| + | |||
| + | - It is important to understand that when the user logs in via Facebook, Twitter or Google AwareIM will find the instance of the user object that corresponds to the current user. Therefore, you need to indicate which type of the user object // | ||
| + | - You should then select the attributes that Facebook, Twitter or Google provides that should map to the attributes of the selected user object. For example, you can map the id attribute provided by Facebook to the LoginName attribute of the user. Every time a user with this Facebook id logs in AwareIM will find the corresponding user object with the value of LoginName equal to this id. | ||
| + | - You should also tick the “Allow creating the object automatically…” checkbox if you want // | ||
| + | - The user can then a special URL to login. See see [[docs: | ||
| + | </ | ||
| + | |||
| + | <panel type=" | ||
| + | Sometimes it may be necessary to store some values specific to the session of a particular user – for example, remember current selection of the user. You may want to use such values in rules, but you don’t want them to be persisted in the database, because they do not make sense when the user logs out. | ||
| + | |||
| + | // | ||
| + | <code aim>IF MySessionObject.CurrentSelection = ' | ||
| + | |||
| + | To define such an object you can create any object with any attributes as required and then set its Persistence property to “Not Persisted”. You should then tick the “Stores session values” checkbox to indicate that this object is the “session” object. Note that you can set only one business object as “session” object. | ||
| + | </ | ||
| + | |||
| + | </ | ||