setProxyBasicAuthentication()
The serviceLib.setProxyBasicAuthentication() system function gives the user access to the EGL Rich UI Proxy when that access is protected by JEE basic authentication. The function lets you provide a user ID and password, which are automatically encrypted for inclusion in an HTTP header. For background information, see EGL Rich UI security,
The function
adds the following key-value pair to the HTTP request
header:
- The key is authorization
- The value is a string composed of Basic and the encrypted user ID and password, which are protected automatically with 64-bit encryption
You compromise security if you hardcode
the user ID and password
in your logic. We recommend that you pass the user ID and password
from a logon screen; for example, with the following code:
userid TextField { width = 100 };
password PasswordTextField { width = 100 };
// the following statement runs in response to a button click
setProxyBasicAuthentication( userid.text, password.text );
You use serviceLib.setProxyBasicAuthentication() as part of application-managed security. You can use the function to implement EGL single signon, as described in EGL Rich UI security.
Syntax
serviceLib.setProxyBasicAuthentication(userID STRING in,
password STRING in)
- userID
- The user ID used to access the EGL Rich UI Proxy
- password
- The related password
You specify the two values without encryption.