Skip to Main Content
Implement custom authentication in APEX

About This Workshop

Youtube Video

About This Workshop
In this workshop you will learn how to create a custom authentication scheme in APEX
that allows end users to create their own account and manage their own login credentials/information without ever seeing the application’s backend.

In order to achieve this, you will first implement a password hashing function and a user credentials table in the underlying database. You will then create an authentication function that will be called at login. Next you will learn how to put all the pieces together to create your own custom authentication scheme. Finally, you will make use of this new authentication scheme by creating a page in your APEX application that allows end users to create their own account. Additional "bonus" labs are provided to implement additional, related functionality involving account activation and password resetting capabilities.

Workshop Info

1 hour, 30 minutes
  • Lab 1: Create a custom authentication scheme
    • Task 0: Create an APEX application
    • Task 1: Write a Password Hashing Function
    • Task 2: Set Up a User Credentials Table
    • Task 3: Write an Authenticate Function
    • Task 4: Create the Authentication Scheme
  • Lab 2: Allowing end users to create their own account
    • Task 1: Create a New User Page
    • Task 2: Add Button to Login Page for “Create New User” Page
  • Lab 3: Implement additional functionality
    • Task 1: Create an Account Activation Page
    • Task 2: Set up Account Activation Email
    • Task 3: Create a Reset Password Page
    • Task 4: Create Page for “Forgot Password” Functionality
  • An existing APEX Workspace
  • Familiarity with application development in APEX (specifically how to use App Builder and SQL Workshop)
  • Some understanding of SQL (is helpful, but not required)

Other Workshops you might like