|
Package mip_security
Handle authentication and authorization processes for the MIP project
|
login
PROCEDURE login(p_uname IN VARCHAR2
,p_password IN VARCHAR2
,p_session_id IN VARCHAR2
,p_flow_page IN VARCHAR2)
Perform user authentication and login An authenticated login for an expired password will result in flow to the 'Change Password' page.
|
|
p_uname
|
username
|
|
|
p_password
|
password
|
|
|
p_session_id
|
APEX session number
|
|
|
p_flow_page
|
the app:page to which flow should pass on successful authentication
|
get_hash
FUNCTION get_hash(p_username IN VARCHAR2
,p_password IN VARCHAR2) RETURN VARCHAR2
valid_user2
PROCEDURE valid_user2(p_username IN VARCHAR2
,p_password IN VARCHAR2)
valid_user
FUNCTION valid_user(p_username IN VARCHAR2
,p_password IN VARCHAR2) RETURN BOOLEAN
authenticate_user
FUNCTION authenticate_user(p_username IN VARCHAR2
,p_password IN VARCHAR2) RETURN BOOLEAN
Authenticates the given username and password
|
|
TRUE for authenticated username and password combination
|
user_screen
FUNCTION user_screen(p_username IN VARCHAR2) RETURN BOOLEAN
admin_screen
FUNCTION admin_screen(p_username IN VARCHAR2) RETURN BOOLEAN
new_password
PROCEDURE new_password(p_username IN VARCHAR2
,p_password IN VARCHAR2)
page_authorization
FUNCTION page_authorization(p_app_user IN VARCHAR2
,p_page_id IN NUMBER
,p_privilege IN apex_authorization.privilege%TYPE DEFAULT 'A')
RETURN BOOLEAN
Authorize access to the given page
|
|
p_app_user
|
The name of the application user
|
|
|
p_page_id
|
The page to be accessed
|
|
|
p_privilege
|
The access privilege requested
|
|
|
Boolean value, true for access allowed
|
component_authorization
FUNCTION component_authorization(p_app_user IN VARCHAR2
,p_component_name IN apex_authorization.component_name%TYPE
,p_privilege IN apex_authorization.privilege%TYPE DEFAULT 'A')
RETURN BOOLEAN
Authorize access to the given component
|
|
p_app_user
|
The name of the application user
|
|
|
p_component_name
|
The name of the component to be accessed
|
|
|
p_privilege
|
The access privilege requested
|
|
|
Boolean value, true for access allowed
|
region_authorization
FUNCTION region_authorization(p_app_user IN VARCHAR2
,p_component_name IN apex_authorization.component_name%TYPE
,p_privilege IN apex_authorization.privilege%TYPE DEFAULT 'A')
RETURN BOOLEAN
Authorize access to the given region
|
|
p_app_user
|
The name of the application user
|
|
|
p_component_name
|
The name of the region to be accessed
|
|
|
p_privilege
|
The access privilege requested
|
|
|
Boolean value, true for access allowed
|