Also referred to as the "Login API," this procedure performs authentication and session registration.
Syntax
APEX_CUSTOM_AUTH.LOGIN(
    p_uname                    IN  VARCHAR2  DEFAULT NULL,
    p_password                 IN  VARCHAR2  DEFAULT NULL,
    p_session_id               IN  VARCHAR2  DEFAULT NULL,
    p_app_page                 IN  VARCHAR2  DEFAULT NULL,
    p_entry_point              IN  VARCHAR2  DEFAULT NULL,
    p_preserve_case            IN  BOOLEAN   DEFAULT FALSE);
Parameter
Table 7-5 LOGIN Parameters
| Parameter | Description | 
|---|---|
| 
 
  | 
 Login name of the user.  | 
| 
 
  | 
 Clear text user password.  | 
| 
 
  | 
 Current Oracle Application Express session ID.  | 
| 
 
  | 
 Current application ID. After login page separated by a colon (:).  | 
| 
 
  | 
 Internal use only.  | 
| 
 
  | 
 If TRUE, do not upper   | 
Example
The following example performs the user authentication and session registration.
BEGIN
    APEX_CUSTOM_AUTH.LOGIN (
        p_uname       => 'FRANK',
        p_password    => 'secret99',
        p_session_id  => V('APP_SESSION'),
        p_app_page    => :APP_ID||':1');
END;
Note:
Do not use bind variable notations for p_session_id argument.