SlideShare a Scribd company logo
Dimitri Gielis
Real Application
Security (RAS) in APEX
www.apexRnD.be
dgielis.blogspot.com
@dgielis
dgielis@apexRnD.be
Dimitri Gielis
❖ Founder & CEO of APEX R&D
❖ 18+ years of Oracle Experience (OCP & APEX Certified)
❖ Oracle ACE Director
❖ “APEX Developer of the year 2009” by Oracle Magazine
❖ “Oracle Developer Choice award (ORDS)” in 2015
❖ Author Expert Oracle Application Express
❖ Presenter at Oracle Conferences (OOW, ODTUG, OGh, UKOUG, …)
https://www.apexofficeprint.com
http://dgielis.blogspot.com @dgielis
Agenda
❖ Security in an APEX app
❖ Introduction to Real Application Security (RAS)
❖ Using RAS in Oracle Application Express (APEX)
❖ Live demo implementing RAS in APEX app
Security in APEX
Oracle APEX Security
❖ Authentication schemes
❖ Can I go in? - Users
❖ SSO, Custom table, APEX, DB…
❖ Authorization schemes
❖ What can I do? - Roles
❖ Defined on APEX components (page, item, navigation, …)
Access Control
❖ Easy wizard
❖ Creation of Authorization schemes & Admin screen
❖ Assign roles to users
❖ Targeted for UI, not for Data
Access Control wizard
Access Control admin screen
Challenges on Data Access Control
What about data?
Challenges on Data Access Control
❖ Code executed under privileged user
❖ Database unaware of end users
❖ Data access policy (data security) is hard coded in
❖ Where-clause - application level
❖ Views - database level
❖ Virtual Private Database (VPD) - database level
Real Application Security (RAS)
Real Application Security (RAS)
A database authorisation solution for end-to-end application
security
RAS Key features
❖ Support Application Users and Sessions
❖ Schema-less user, security and application context in DB
❖ Support Application Privileges and Roles
❖ Support fine-grained data access control on rows and columns
❖ Based on user operation execution context
❖ Enforce security close to data
Example Application Security
❖ All employees can view public information
❖ An employee can view own record, update contact information
❖ Manager can view salary of his/her reports
Name Manager SSN Salary Phone Number
Adam Steven 515.123.4567
Neena Steven 515.123.4568
Nancy Neena 515.124.4569
Luis Nancy 515.124.4567
John Nancy 515.124.4269
Daniel Nancy 515.124.4469
Nancy Neena 108-51-4569 12030 650.111.3300
6900
8200
9000
RAS Concepts: Data Realms
❖ A group of rows representing a business object
❖ All employees
❖ My own employee record
❖ All employees under my report
❖ Assign privileges to columns
❖ viewSSN for SSN column
❖ viewSalary for Salary column
Employee	table
My	own
My	reports
viewSSN viewSalary
All	records
RAS Concepts: Policy components
❖ Data Security policy is a collection of Data Realms and ACLs
❖ Each Data Realm has an associated ACL with grants
Access Control List (ACL)
-Grant select to Manager
-Grant viewSalary to Manager
Application Privilege
-select,viewSalary
Application Privilege
-select,viewSalary
Application Role
- Manager
Application Role
- Manager
Data Realm
- Employees
under my report
Data Realm
- Employees
under my report
Access Control List (ACL)
-Grant select to Manager
-Grant viewSalary to Manager
Data Realm
- Employees
under my report
Application Role
- Manager
Application Privilege
-select,viewSalary
RAS: setup with PL/SQL API
xs_principal.create_role(name => 'emp_role', enabled => true);
xs_security_class.create_security_class(
name => 'hr.hrprivs',
parent_list => xs$name_list('sys.dml'),
priv_list => xs$privilege_list(xs$privilege('view_salary')));
RAS Administration Tool
1.	All	records
2.	My	record
3.	My	reports
Employees	
Table
Restricted	
Salary	&	SSN	
Columns
Privilege	
Grants
Note: the RASADM (RAS Administration Tool) is written in APEX :)
RAS Administration Tool: ACLs
Grants	on	my	
record
Grants	on	all	
records
Grants	on	my	
reports
RAS Administration Tool: Application Roles
HR	Representatives	
can	view	SSN
Employees	can	view	
and	update	their	own	
records
Managers	can	
view	salaries	of	
their	reports
Real Application Security Features
• VP	delegating	calendar	management	function	to	an	AssistantControlled	Delegation
• Contractor	getting	access	for	a	specific	duration	Effective-date	support
• Access	to	certain	reports	allowed	only	on	intranetNegative	grants
• Batch	programs	with	elevated	privileges	to	summarize	dataCode-based	security
• Conditional	rendering	of	User	InterfaceFunction	Security	
• Application	users,	privileges,	roles	are	known	to	databaseAuditing
Real Application Security Architecture
Data Security Policy
DB Sessions
RAS Sessions
SQL*PlusAPEX apps…
RAS in APEX
RAS Integration with APEX
❖ Application users continue to be provisioned 

in the database or identity stores
❖ User authentication remains in APEX
❖ RAS session contains application user, 

its roles, and session context
❖ Based on APEX user’s security context
❖ Application code executes within RAS session
❖ Attached and detached to a db session
Page	Request	
APEX	Session
Page	Display
Application	code
Detach	RAS	Session
Attach	RAS	Session
RAS Integration with APEX 5
❖ APEX can use RAS users, roles, and data security policy
❖ Instead of custom authorization using VPD
❖ RAS Session is transparently created based on APEX session
❖ For APEX authorization schemes, use RAS ACL check operators
Demo RAS in APEX
RAS Benefits
❖ Stronger security
❖ Enforced regardless of entry points: direct, APEX, or middleware
❖ Audit end-user activity in database audit trail
❖ Simpler development
❖ Declarative policy, relieves writing authorization code
❖ Native support for application roles, application privileges, application users
❖ High Performance Access Control
❖ Optimized for typical data access patterns within core database
❖ Simpler administration
❖ Centralized management, end-to-end uniform security across mid-tier and database
RAS - to know…
❖ One RAS repository for the whole database
❖ Takes a bit of time to get used to the implementation and naming
❖ RASADM can help, but …
❖ RASADM doesn’t expose all features
❖ RASADM app didn’t always behave as expected 

(had to patch it to get some things working )
❖ Once you enable RAS make sure to test your app (!)

APEX Advisor can’t check for the correct grants (yet).
References
❖ Oracle RAS Developer Guide

docs.oracle.com/database/121
❖ Oracle RAS Papers

www.oracle.com/technetwork/database/security/real-application-security
❖ Presentation by Vikram Pesati
❖ Presentation by Joel Kallman & Tanvir Ahmed 

www.slideserve.com/odele/oracle-database-12c-real-application-security-for-oracle-application-
express
Q&A
www.apexRnD.be
dgielis.blogspot.com
@dgielis
dgielis@apexRnD.be
❖ Looking for consulting, training and development in Oracle
Application Express (APEX)?
❖ Contact : www.apexRnD.be
❖ Mail : info@apexRnD.be
Consulting, Development, Training

More Related Content

What's hot (20)

PPT
Introduction to sql
VARSHAKUMARI49
 
PDF
Can You Do That with APEX? Building Not So Straightforward Pages
Dimitri Gielis
 
PDF
Spring core module
Raj Tomar
 
PPTX
Oracle sql analytic functions
mamamowebby
 
PPTX
Oracle Database Cloud Service
Jean-Philippe PINTE
 
PPT
Oracle reports
Lacc Corona
 
PDF
Rails request & middlewares
Santosh Wadghule
 
PPTX
Spring boot
Gyanendra Yadav
 
PDF
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
Edureka!
 
PDF
Webinar Oracle Application Express
avanttic Consultoría Tecnológica
 
PPTX
從狗熊到英雄 - 我的.Net 6 blazor新體驗
Ron Zhong
 
PDF
Restful api design
Mizan Riqzia
 
ODP
Introduction to Spring Framework and Spring IoC
Funnelll
 
PDF
Oracle database hot backup and recovery
Arun Sharma
 
PDF
Step By Step to Install Oracle Business Intelligence
Osama Mustafa
 
PDF
ELK stack introduction
abenyeung1
 
PPTX
Spring boot - an introduction
Jonathan Holloway
 
PPSX
Rest api standards and best practices
Ankita Mahajan
 
PDF
Oracle APEX Social Login
msewtz
 
PPTX
Oracle RAD stack REST, APEX, Database
Michael Hichwa
 
Introduction to sql
VARSHAKUMARI49
 
Can You Do That with APEX? Building Not So Straightforward Pages
Dimitri Gielis
 
Spring core module
Raj Tomar
 
Oracle sql analytic functions
mamamowebby
 
Oracle Database Cloud Service
Jean-Philippe PINTE
 
Oracle reports
Lacc Corona
 
Rails request & middlewares
Santosh Wadghule
 
Spring boot
Gyanendra Yadav
 
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
Edureka!
 
Webinar Oracle Application Express
avanttic Consultoría Tecnológica
 
從狗熊到英雄 - 我的.Net 6 blazor新體驗
Ron Zhong
 
Restful api design
Mizan Riqzia
 
Introduction to Spring Framework and Spring IoC
Funnelll
 
Oracle database hot backup and recovery
Arun Sharma
 
Step By Step to Install Oracle Business Intelligence
Osama Mustafa
 
ELK stack introduction
abenyeung1
 
Spring boot - an introduction
Jonathan Holloway
 
Rest api standards and best practices
Ankita Mahajan
 
Oracle APEX Social Login
msewtz
 
Oracle RAD stack REST, APEX, Database
Michael Hichwa
 

Viewers also liked (10)

PDF
Service Workers and APEX
Dimitri Gielis
 
PPTX
Protect Sensitive Data: Implementing Fine-Grained Access Control in Oracle
Nelson Calero
 
PPTX
Black Duck & IBM Present: Application Security in the Age of Open Source
Black Duck by Synopsys
 
PDF
Strategy considerations for building a security operations center
CMR WORLD TECH
 
PDF
Scaling IoT: Telemetry, Command & Control, Analytics and the Cloud
Nick Landry
 
PDF
Oracle’s Advanced Analytics & Machine Learning 12.2c New Features & Road Map;...
Charlie Berger
 
PDF
Introduction to Machine Learning for Oracle Database Professionals
Alex Gorbachev
 
PDF
Software Defined Networking (SDN) with VMware NSX
Zivaro Inc
 
PDF
Building Security Operation Center
S.E. CTS CERT-GOV-MD
 
PPTX
Security Operation Center - Design & Build
Sameer Paradia
 
Service Workers and APEX
Dimitri Gielis
 
Protect Sensitive Data: Implementing Fine-Grained Access Control in Oracle
Nelson Calero
 
Black Duck & IBM Present: Application Security in the Age of Open Source
Black Duck by Synopsys
 
Strategy considerations for building a security operations center
CMR WORLD TECH
 
Scaling IoT: Telemetry, Command & Control, Analytics and the Cloud
Nick Landry
 
Oracle’s Advanced Analytics & Machine Learning 12.2c New Features & Road Map;...
Charlie Berger
 
Introduction to Machine Learning for Oracle Database Professionals
Alex Gorbachev
 
Software Defined Networking (SDN) with VMware NSX
Zivaro Inc
 
Building Security Operation Center
S.E. CTS CERT-GOV-MD
 
Security Operation Center - Design & Build
Sameer Paradia
 
Ad

Similar to Real Application Security (RAS) and Oracle Application Express (APEX) (20)

PPTX
JD Edwards E1 security ppt
Eva Harshita
 
PPTX
JDEdwards E1 Security
Sanguine_Eva
 
PPTX
Group 8 - Database Security Version 1.pptx
HenryQuang1
 
PPTX
Modern Data Security for the Enterprises – SQL Server & Azure SQL Database
WinWire Technologies Inc
 
PPT
database-security-design.ppt
SharifulShishir
 
PPTX
Shivani shukla_B38_KnowledgeManagement
shivanishuks
 
PDF
Security in oracle
ssuser40bb47
 
PDF
security in oracle database
ssuser40bb47
 
PDF
RSA Security Data Access Governance Infographic
EMC
 
PPTX
Database Security
ShingalaKrupa
 
PPTX
Database security and security in networks
Prachi Gulihar
 
PDF
Security In Oracle Database V19c
alixa13
 
PPTX
Security Inside Out: Latest Innovations in Oracle Database 12c
Troy Kitch
 
PDF
APEX Security Primer
Enkitec
 
PPTX
What’s Happening in Information Risk Management
Michael S. Gurican
 
PPT
Securing Citizen Facing Applications
edwinlorenzana
 
PPTX
International Conference on Cyber Security, Hide and Go Seek
David Knox
 
PPTX
Security of the database
Pratik Tamgadge
 
PDF
Authorization Enterprise Design Pattern
Nick Bogden
 
PDF
Sap basis and_security_administration
Anil Kumar Reddy Cheppalli
 
JD Edwards E1 security ppt
Eva Harshita
 
JDEdwards E1 Security
Sanguine_Eva
 
Group 8 - Database Security Version 1.pptx
HenryQuang1
 
Modern Data Security for the Enterprises – SQL Server & Azure SQL Database
WinWire Technologies Inc
 
database-security-design.ppt
SharifulShishir
 
Shivani shukla_B38_KnowledgeManagement
shivanishuks
 
Security in oracle
ssuser40bb47
 
security in oracle database
ssuser40bb47
 
RSA Security Data Access Governance Infographic
EMC
 
Database Security
ShingalaKrupa
 
Database security and security in networks
Prachi Gulihar
 
Security In Oracle Database V19c
alixa13
 
Security Inside Out: Latest Innovations in Oracle Database 12c
Troy Kitch
 
APEX Security Primer
Enkitec
 
What’s Happening in Information Risk Management
Michael S. Gurican
 
Securing Citizen Facing Applications
edwinlorenzana
 
International Conference on Cyber Security, Hide and Go Seek
David Knox
 
Security of the database
Pratik Tamgadge
 
Authorization Enterprise Design Pattern
Nick Bogden
 
Sap basis and_security_administration
Anil Kumar Reddy Cheppalli
 
Ad

More from Dimitri Gielis (16)

PDF
Bring the light in your Always FREE Oracle Cloud
Dimitri Gielis
 
PPTX
APEX Office Print (AOP)
Dimitri Gielis
 
PDF
REST Web Service? No, GraphQL please!
Dimitri Gielis
 
PDF
Bringing Virtual Reality (VR) and Augmented Reality (AR) to APEX
Dimitri Gielis
 
PDF
Oracle APEX Cheat Sheet
Dimitri Gielis
 
PDF
Reporting with Oracle Application Express (APEX)
Dimitri Gielis
 
PDF
Moving your APEX app to the Oracle Exadata Express Cloud
Dimitri Gielis
 
PDF
Oracle APEX for Beginners
Dimitri Gielis
 
PDF
JavaScript straight from the Oracle Database
Dimitri Gielis
 
PDF
APEX Office Print
Dimitri Gielis
 
PDF
Moving to the APEX Listener
Dimitri Gielis
 
PDF
APEX Wearables
Dimitri Gielis
 
PDF
APEX 5 Demo and Best Practices
Dimitri Gielis
 
PDF
A Primer on Web Components in APEX
Dimitri Gielis
 
PDF
How to make APEX print through Node.js
Dimitri Gielis
 
PDF
Oracle Application Express (APEX) and Microsoft Sharepoint integration
Dimitri Gielis
 
Bring the light in your Always FREE Oracle Cloud
Dimitri Gielis
 
APEX Office Print (AOP)
Dimitri Gielis
 
REST Web Service? No, GraphQL please!
Dimitri Gielis
 
Bringing Virtual Reality (VR) and Augmented Reality (AR) to APEX
Dimitri Gielis
 
Oracle APEX Cheat Sheet
Dimitri Gielis
 
Reporting with Oracle Application Express (APEX)
Dimitri Gielis
 
Moving your APEX app to the Oracle Exadata Express Cloud
Dimitri Gielis
 
Oracle APEX for Beginners
Dimitri Gielis
 
JavaScript straight from the Oracle Database
Dimitri Gielis
 
APEX Office Print
Dimitri Gielis
 
Moving to the APEX Listener
Dimitri Gielis
 
APEX Wearables
Dimitri Gielis
 
APEX 5 Demo and Best Practices
Dimitri Gielis
 
A Primer on Web Components in APEX
Dimitri Gielis
 
How to make APEX print through Node.js
Dimitri Gielis
 
Oracle Application Express (APEX) and Microsoft Sharepoint integration
Dimitri Gielis
 

Recently uploaded (20)

PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 

Real Application Security (RAS) and Oracle Application Express (APEX)

  • 1. Dimitri Gielis Real Application Security (RAS) in APEX www.apexRnD.be dgielis.blogspot.com @dgielis [email protected]
  • 2. Dimitri Gielis ❖ Founder & CEO of APEX R&D ❖ 18+ years of Oracle Experience (OCP & APEX Certified) ❖ Oracle ACE Director ❖ “APEX Developer of the year 2009” by Oracle Magazine ❖ “Oracle Developer Choice award (ORDS)” in 2015 ❖ Author Expert Oracle Application Express ❖ Presenter at Oracle Conferences (OOW, ODTUG, OGh, UKOUG, …)
  • 5. Agenda ❖ Security in an APEX app ❖ Introduction to Real Application Security (RAS) ❖ Using RAS in Oracle Application Express (APEX) ❖ Live demo implementing RAS in APEX app
  • 7. Oracle APEX Security ❖ Authentication schemes ❖ Can I go in? - Users ❖ SSO, Custom table, APEX, DB… ❖ Authorization schemes ❖ What can I do? - Roles ❖ Defined on APEX components (page, item, navigation, …)
  • 8. Access Control ❖ Easy wizard ❖ Creation of Authorization schemes & Admin screen ❖ Assign roles to users ❖ Targeted for UI, not for Data
  • 11. Challenges on Data Access Control What about data?
  • 12. Challenges on Data Access Control ❖ Code executed under privileged user ❖ Database unaware of end users ❖ Data access policy (data security) is hard coded in ❖ Where-clause - application level ❖ Views - database level ❖ Virtual Private Database (VPD) - database level
  • 14. Real Application Security (RAS) A database authorisation solution for end-to-end application security
  • 15. RAS Key features ❖ Support Application Users and Sessions ❖ Schema-less user, security and application context in DB ❖ Support Application Privileges and Roles ❖ Support fine-grained data access control on rows and columns ❖ Based on user operation execution context ❖ Enforce security close to data
  • 16. Example Application Security ❖ All employees can view public information ❖ An employee can view own record, update contact information ❖ Manager can view salary of his/her reports Name Manager SSN Salary Phone Number Adam Steven 515.123.4567 Neena Steven 515.123.4568 Nancy Neena 515.124.4569 Luis Nancy 515.124.4567 John Nancy 515.124.4269 Daniel Nancy 515.124.4469 Nancy Neena 108-51-4569 12030 650.111.3300 6900 8200 9000
  • 17. RAS Concepts: Data Realms ❖ A group of rows representing a business object ❖ All employees ❖ My own employee record ❖ All employees under my report ❖ Assign privileges to columns ❖ viewSSN for SSN column ❖ viewSalary for Salary column Employee table My own My reports viewSSN viewSalary All records
  • 18. RAS Concepts: Policy components ❖ Data Security policy is a collection of Data Realms and ACLs ❖ Each Data Realm has an associated ACL with grants Access Control List (ACL) -Grant select to Manager -Grant viewSalary to Manager Application Privilege -select,viewSalary Application Privilege -select,viewSalary Application Role - Manager Application Role - Manager Data Realm - Employees under my report Data Realm - Employees under my report Access Control List (ACL) -Grant select to Manager -Grant viewSalary to Manager Data Realm - Employees under my report Application Role - Manager Application Privilege -select,viewSalary
  • 19. RAS: setup with PL/SQL API xs_principal.create_role(name => 'emp_role', enabled => true); xs_security_class.create_security_class( name => 'hr.hrprivs', parent_list => xs$name_list('sys.dml'), priv_list => xs$privilege_list(xs$privilege('view_salary')));
  • 21. RAS Administration Tool: ACLs Grants on my record Grants on all records Grants on my reports
  • 22. RAS Administration Tool: Application Roles HR Representatives can view SSN Employees can view and update their own records Managers can view salaries of their reports
  • 23. Real Application Security Features • VP delegating calendar management function to an AssistantControlled Delegation • Contractor getting access for a specific duration Effective-date support • Access to certain reports allowed only on intranetNegative grants • Batch programs with elevated privileges to summarize dataCode-based security • Conditional rendering of User InterfaceFunction Security • Application users, privileges, roles are known to databaseAuditing
  • 24. Real Application Security Architecture Data Security Policy DB Sessions RAS Sessions SQL*PlusAPEX apps…
  • 26. RAS Integration with APEX ❖ Application users continue to be provisioned 
 in the database or identity stores ❖ User authentication remains in APEX ❖ RAS session contains application user, 
 its roles, and session context ❖ Based on APEX user’s security context ❖ Application code executes within RAS session ❖ Attached and detached to a db session Page Request APEX Session Page Display Application code Detach RAS Session Attach RAS Session
  • 27. RAS Integration with APEX 5 ❖ APEX can use RAS users, roles, and data security policy ❖ Instead of custom authorization using VPD ❖ RAS Session is transparently created based on APEX session ❖ For APEX authorization schemes, use RAS ACL check operators
  • 28. Demo RAS in APEX
  • 29. RAS Benefits ❖ Stronger security ❖ Enforced regardless of entry points: direct, APEX, or middleware ❖ Audit end-user activity in database audit trail ❖ Simpler development ❖ Declarative policy, relieves writing authorization code ❖ Native support for application roles, application privileges, application users ❖ High Performance Access Control ❖ Optimized for typical data access patterns within core database ❖ Simpler administration ❖ Centralized management, end-to-end uniform security across mid-tier and database
  • 30. RAS - to know… ❖ One RAS repository for the whole database ❖ Takes a bit of time to get used to the implementation and naming ❖ RASADM can help, but … ❖ RASADM doesn’t expose all features ❖ RASADM app didn’t always behave as expected 
 (had to patch it to get some things working ) ❖ Once you enable RAS make sure to test your app (!)
 APEX Advisor can’t check for the correct grants (yet).
  • 31. References ❖ Oracle RAS Developer Guide
 docs.oracle.com/database/121 ❖ Oracle RAS Papers
 www.oracle.com/technetwork/database/security/real-application-security ❖ Presentation by Vikram Pesati ❖ Presentation by Joel Kallman & Tanvir Ahmed 
 www.slideserve.com/odele/oracle-database-12c-real-application-security-for-oracle-application- express
  • 33. ❖ Looking for consulting, training and development in Oracle Application Express (APEX)? ❖ Contact : www.apexRnD.be ❖ Mail : [email protected] Consulting, Development, Training