Configuring Application Login

Sometimes it may be necessary to get AwareIM-based applications to use credentials of existing users in other systems for login rather than get AwareIM to store credentials in its own database. For example, if you already have an LDAP server or an Active Directory that stores corporate users you may want to get AwareIM to use the credentials of the existing users for logging into AwareIM, or even bypass AwareIM login altogether if a user is already logged in in the other system. Or the user could be already logged in some other external system and they do not want to login again to use AwareIM.

AwareIM offers 3 options for login:

  1. Standard AwareIM login using user name and password
  2. SSO with some other software system using SAML protocol (Identity Provider or Idp)
  3. SSO via Active Directory/LDAP

The first option is available by default. This section describes the other two options. To set up login options, double-click on the business space version to bring up its properties and click on the Login Options entry in the Properties window to bring up the “Login Options” dialog.

To set up login through AD/LDAP, the configurator has to perform the following steps:

  1. Define an object that represents an LDAP user (see Definining Business Objects that use the LDAP Server) – the object must point to the user object in the LDAP Server/Active Directory
  2. Create a regular AwareIM object that represents the logged in user. This object must be a member of the SystemUser group (see the Access Level section).
  3. Create a reference to the LDAP object created at step 1 in the AwareIM object created at step 2
  4. Create business rules that will determine the access level of the AwareIM object based on the data stored in the referenced LDAP object.
  5. On the “Login Options” dialog tick the “Login will be managed by Active Directory/LDAP” radio button and then click on the “Details” link to bring up the “Login through AD/LDAP” dialog. On this dialog specify the names of the objects created at step 1 and 2 and the reference attribute created at step 3.

When a user logs in AwareIM-based system AwareIM will use the LDAP/Active Directory login rather than try to find the user in its own database. If LDAP/Active Directory authenticates the user AwareIM will try to find the instance of the AwareIM object that corresponds to the user with the specified login name. AwareIM will automatically create such an instance if it does not exist yet and if such option has been switched on in the “Login through AD/LDAP” dialog. This instance will then be used throughout AwareIM as a “logged in user”. The access level of such user will be determined by business rules created at step 4 above.

AwareIM login can be bypassed altogether by those Active Directory/LDAP users that are already logged in through LDAP/Active Directory. The configurators have to tick the “Allow Single Sign-On through LDAP” checkbox on the “Login Options” dialog to allow this. AwareIM will automatically use the user that corresponds to the currently logged in user in the Active Directory/LDAP.

The users have to use the following URL to enter AwareIM-based system without logging in:

http://localhost:8080/AwareIM/logonDirect.aw

The above URL will use the default business space. It is also possible to indicate the name of the business space and testing mode flag using the following parameters: “domain”, “testingMode”, for example:

http://localhost:8080/AwareIM/logonDirect.aw?domain=CRM&testingMode=true

With SAML your AwareIM-based application is called the Service Provider(SP) and another system that you want to integrate with and support Single Sign-on is called the “Identity Provider” (IDP). This system provides Identity, i.e. the details of the user who is logged in. You can setup SSO support for several identity providers. In the SOO setup a login request can be initiated either by the IDP or by the SP. In the former scenario the user is already logged in the IDP system, and they initiate the login request to enter the AwareIM-based application. In the latter scenario, it is the other way around. At the moment AwareIM only supports the scenario where the login is initiated by the IDP.

To setup SAML SSO support, the configurator has to tick the “Allow Single Sign On through SAML identity providers” on the “Login Options” dialog and click on the “Details” link next to it to bring up the “Login through SAML” dialog. This dialog has a list of the identity providers that your application integrates with, as well as the Service Provider details of your AwareIM- based application, which are the same for all IDP's.

To set up the IDP click on the Add button above the list of IDPs on the “Login through SAML” dialog. You will need to check out the documentation of the IDP for the following mandatory SAML details:

  1. ID of the IDP
  2. IDP endpoint
  3. X509 certificate of the IDP

You should also check IDP's documentation for the values of other settings, like the signing algorithm used, whether requests sent to the SP are signed and so on. You need to enter these values into the IDP dialog and provide the unique name of the IDP. The dialog should then display a value for the “Relay State” setting - it should be auto-populated based on the other information that you provide. This Relay State should be given to the IDP, as it will have to send the value of the Relay State to the SP when it initiates the login request. This relay state has the name of the business space and the name of the IDP.

There is only one Service Provider for all IDP's that you integrate with - it's your AwareIM-based application. You need to provide the details of your application to the IDP's. This is done in the “Login through SAML” dialog. The following information needs to be specfied:

  1. Base URL of your system that includes server name, port, name of the web application, for example:
http(s)://YourServer:YourPort/AwareIM

Your SP ID, SAML Access URL and logout URL (if supported) will be calculated automatically based on the value of the base URL. These URL's need to be given to each IDP.

  1. If an IDP requires that assertion are encrypted and requests to the SP are signed, you may need to obtain an X-509 certificate and enter it into the dialog.