NZTA\Okta\OktaMiddleware
Synopsis
class OktaMiddleware
implements
HTTPMiddleware
{
- // members
- protected integer $sessionTimeout = 7200;
- private static array $okta_whitelist_urls = ;
- // methods
- public HTTPResponse|bool process()
- public HTTPResponse|bool preRequest()
- public $this applyToResponse()
- protected bool hasAccess()
- private bool isAccessingOkta()
- private bool isAccessingSecurityAndWhitelisted()
- private bool isWhitelisted()
- private bool isTimeLimitedSession()
- private bool isURLWhiteListed()
- private bool inMultipleArray()
Hierarchy
Implements
- SilverStripe\Control\Middleware\HTTPMiddleware
Members
private
- $okta_whitelist_urls — array
protected
- $sessionTimeout
—
int
Session timeout in seconds. This does not apply if the remote IP address is whitelisted.
Methods
private
- inMultipleArray()
- isAccessingOkta() — Checks if the user is accessing /okta section of the site
- isAccessingSecurityAndWhitelisted() — Checks if the user is accessing the security section of the site
- isTimeLimitedSession() — This checks whether we should check the session to see if it has timed out.
- isURLWhiteListed() — Checks if the current URL is in the okta_whiltelist_urls to bypass okta.
- isWhitelisted() — Checks if the current users IP is in the whitelist to bypass okta.
protected
- hasAccess() — Allows access via the command line and when in dev mode logged in as admin
public
- applyToResponse() — Generate all headers to add to this object
- preRequest()
- process()