APEX Authentication & Authorization (Starter Guide) with Login system having multiple users, role-based access (Admin / User) and Protected pages
1️⃣ Create Application
Create a new application named: 👉 Authentication & Authorization
Then open the application.
2️⃣ Navigate to Shared ComponentsGo to: 👉 Shared Components
3️⃣ Configure Authentication Scheme Open Authentication Schemes Create a new scheme Use Custom Function for validation 4️⃣ Create User Info TableCreate a table with:
Username Password Role (Admin/User)
5️⃣ Configure Authorization SchemesCreate two schemes:
✅ Admin Access ✅ User Access
6️⃣ Run the ApplicationRun the application and test login.
7️⃣ Invalid Login AttemptEnter incorrect credentials → ❌ Login Failed
8️⃣ Successful LoginEnter correct credentials → ✅ Login Successful
9️⃣ Employee Record Access (Admin & User)Both users can access Employee Records.
🔟 Department Record Access (Admin Only) Admin ✅ Access Allowed User ❌ Access Denied 🎯 Final Result ✅ Authentication implemented ✅ Role-based authorization working ✅ Secure page access control achieved

















