Authentication in Megaladata
In the server Megaladata editions it is required to log in before work. For this purpose, it is required to pass the authentication procedure using one of the following ways:
- to enter a username and password on the home page;
- to specify login and password in URL;
- via the LDAP server (for the Enterprise edition).
Login and password are provided by the administrator, but there is a default user in the case of the software installation: user login, without password.
Authentication in URL
Generally, URL with authentification parameters is as follows:
http://login:password@address
where
login
: login (name) of user (the string that can contain the Roman alphabet characters, digits, characters_ - .
, space (URL encoded) and any other URL encoded string).password
: password (the string that can contain any characters).address
: URL address of the Megaladata server web interface.
http://user@localhost/app/
http://viewer:12345@support/app/
It is possible to use such authentification method with LDAP.
Authentification in URL is not available in Safari. Configuration is required in Firefox.
If Megaladata is accessed from the Internet, it is recommended to configure server for operation via the
https
protocol.
Firefox Browser Settings
When transferring authentification parameters to URL in Firefox, warning window will be displayed if server hasn't requested the Basic authentification. To avoid the warning window displayed by Firefox, it is required to configure the Apache server in such a way to make it request the Basic configuration.
It is required to create alias with http://localhost/app/
, for example: http://localhost/app-basicauth/
. It will make the application available.
When logging into Firefox via http://localhost/app-basicauth/
, Apache will request the Basic authentification.
It is required to create a file with usernames and hashed passwords - documentation.
If it is required to provide configuration only for user
user who doesn't have a password by default, it is sufficient just to create .htpasswd
file (without extension) in the following folder: C:\Program Files\Megaladata\Client
with the following code:
<If "%{HTTP_USER_AGENT} =~ /Firefox/ && %{REQUEST_URI} =~ /\/app-basicauth\//">
AuthType Basic
AuthName Documents
AuthBasicProvider file
AuthUserFile "/path/to/.htpasswd"
Require valid-user
</If>
<Else>
Require all granted
</Else>
In the result, Firefox will show the information window with the following text: You are about to log in to the site “localhost” with the username “user”
.