NSWDPC\Authentication\Okta\OktaUserRemoveJob
Queued Job to handle removal of users who are not syncing from Okta via the {@link NSWDPC\Authentication\Okta\OktaAppUserSyncJob}
Members with:
- CMS_ACCESS permissions
- no last Okta sync date
... are not removed
You can add this as a default job to your project by following the queued job documentation
https://github.com/symbiote/silverstripe-queuedjobs#default-jobs
Alternately, add it to the queued jobs administration area, it will requeue after each run
using the configured $requeue_in_seconds value
If a removed Okta user/Member is re-added to the Okta application
they will automatically sign-in without issue,
provided they meet the authentication requirements.
In this case they will be assigned a new Member record
Synopsis
class OktaUserRemoveJob
extends AbstractQueuedJob
{
- // members
- private static integer $requeue_in_seconds = 86400;
- // methods
- public void __construct()
- public void getJobType()
- public void getTitle()
- public void process()
- public void afterComplete()
Hierarchy
Extends
- Symbiote\QueuedJobs\Services\AbstractQueuedJob
Uses
- SilverStripe\Core\Config\Configurable
Members
private
- $requeue_in_seconds — int
Methods
public
- __construct()
- afterComplete() — Recreate the job for the next run, at the time determined by configuration
- getJobType()
- getTitle()
- process() — Run the job