Overview
If your organization has an Okta account, you may use it to authenticate users in your Moodle site as well with Moodle's built-in OAuth2 capabilities. To do so, you will need to register your Moodle site as an application in Okta and then configure your Moodle site to allow users to login with their Okta credentials.
Part 1: Setting up Okta
- From the Okta Organization Dashboard, Click Application
Select Create App Integration

Select OIDC- OpenID Connect under Sign-in Method

Select Web Application under Application Type

Click Next
Enter the following information into the form:
Click Save
Copy the following and store them in a safe, accessible place for later
Client ID
Client Secret
Okta Domain
Part 2: Configuring Authentication (Moodle)
Login to your Moodle Site
Click Site Administration
Click Server
Click Oauth 2 Services

Click Create a new custom service

Enter the name you want users to see as the Name
Enter the copied Client ID and Client Secret in the boxes labeled Client ID & Client Secret

Enter the Okta domain into the Service base URL then Save changes

Part 03: Enabling Authentication
Login to your Moodle Site
Click Site Administration > Plugins > Manage Authentication

Click the eye icon next to OAuth2

Oauth2 will now be no longer grayed out and appear near the top of the list
Part 04: Testing authentication
Log out of Moodle
Click the newly added Okta button
Log in with your Okta Credentials
Upon initially logging in, you may be asked to confirm your email address through a link sent via email
