Skip to content

AbdulRehmanRiaz/Authentication-and-Authorization-In-Apex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authentication-and-Authorization-In-Apex

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 Components

Go to: 👉 Shared Components

3️⃣ Configure Authentication Scheme Open Authentication Schemes Create a new scheme Use Custom Function for validation





4️⃣ Create User Info Table

Create a table with:

Username Password Role (Admin/User)

5️⃣ Configure Authorization Schemes

Create two schemes:

✅ Admin Access ✅ User Access





6️⃣ Run the Application

Run the application and test login.

7️⃣ Invalid Login Attempt

Enter incorrect credentials → ❌ Login Failed

8️⃣ Successful Login

Enter 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

About

APEX Authentication & Authorization (Starter Guide) with Login system having multiple users, role-based access (Admin / User) and Protected pages

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors