Example: Defining an OTP Channel Type

Creating a View of a Non-OAAM Database 21-3 In this case, a decode statement is needed to convert the custom authentication status to an OAAM authentication status, and the IP address needs to be parsed to convert it into a long integer. A view must be created that looks like the following. CREATE OR REPLACE FORCE VIEW OAAM_LOAD_DATA_VIEW LOGIN_TIMESTAMP, SESSION_ID, USER_ID, LOGIN_ID, DEVICE_ID, GROUP_ID, IP_ADDRESS, AUTH_STATUS, CLIENT_TYPE, USER_AGENT, FLASH_FINGERPRINT, DIGITAL_COOKIE, EXP_DIGITAL_COOKIE, SECURE_COOKIE, EXP_SECURE_COOKIE AS SELECT l.login_time LOGIN_TIMESTAMP, castl.login_id AS varchar2256 SESSION_ID, l.user_name USER_ID, l.user_name, LOGIN_ID, l.device_id DEVICE_ID, Banking GROUP_ID, to_numbersubstrl.ip_address, 1, instrl.ip_address, .-116777216 to_numbersubstrl.ip_address, instrl.ip_address, ., 1, 1+1, instrl.ip_address, ., 1, 2-instrl.ip_address, ., 1, 1-165536 to_numbersubstrl.ip_address, instrl.ip_address, ., 1, 2+1, instrl.ip_address, ., 1, 3-instrl.ip_address, ., 1, 2-1256 to_numbersubstrl.ip_address, instrl.ip_address, ., 1, 3+1 IP_ ADDRESS, decodel.auth_status, S, 0, I, 1, F, 2, -1 AUTH_STATUS, -1 CLIENT_TYPE, l.user_agent USER_AGENT, null FLASH_FINGERPRINT, null DIGITAL_COOKIE, null EXP_DIGITAL_COOKIE, null SECURE_COOKIE, null EXP_SECURE_COOKIE FROM logins l WHERE l.is_test = 0 Here, you map your user_name to USER_ID and LOGIN_ID, you map a literal string Banking to GROUP_ID, you parse your ip_address string and convert it to a long integer, you use a decode statement to convert your auth_status, you map -1 to CLIENT_TYPE, and you map literal null to FLASH_FINGERPRINT, DIGITAL_ COOKIE, EXP_DIGITAL_COOKIE, SECURE_COOKIE, and EXP_SECURE_COOKIE. Table 21–2 LOGINS Field Name Data Type Description LOGIN_TIME DateTime The login time. LOGIN_ID Integer Primary Key USER_NAME Character The users Login ID. DEVICE_ID Character Identifies the users device. IP_ADDRESS Character The IP address, in dot notation. AUTH_STATUS Character S = Success, I = Invalid User, F = Wrong Password. USER_AGENT Character The user agent string from the browser. IS_TEST Integer 0 = Real Data, 1 = Test data 21-4 Oracle Fusion Middleware Developers Guide for Oracle Adaptive Access Manager