OktaProvider
extends BaseProvider
in package
Provider for Okta.
Table of Contents
- $config : mixed
- $verificationFailed : mixed
- __construct() : mixed
- Constructor.
- addCustomInput() : mixed
- Adds the custom input fields to the form.
- getSerials() : mixed
- {@inheritDoc}
- hasCustomInputForm() : has
- Returns if the service has a custom input form.
- isShowSubmitButton() : bool
- Returns if the submit button should be shown.
- supportsToRememberDevice() : bool
- verify2ndFactor() : mixed
- {@inheritDoc}
- getLoginAttributeValue() : string
- Returns the value of the user attribute in LDAP.
- getAccessCode() : string|null
- Reads the access code using code.
Properties
$config
protected
mixed
$config
$verificationFailed
private
mixed
$verificationFailed
= false
Methods
__construct()
Constructor.
public
__construct(TwoFactorConfiguration &$config) : mixed
Parameters
- $config : TwoFactorConfiguration
-
configuration
Return values
mixed —addCustomInput()
Adds the custom input fields to the form.
public
addCustomInput(mixed &$row, mixed $userDn) : mixed
Parameters
- $row : mixed
-
row where to add the input fields
- $userDn : mixed
-
user DN
Tags
Return values
mixed —getSerials()
{@inheritDoc}
public
getSerials(mixed $user, mixed $password) : mixed
Parameters
- $user : mixed
- $password : mixed
Tags
Return values
mixed —hasCustomInputForm()
Returns if the service has a custom input form.
public
hasCustomInputForm() : has
Tags
Return values
has —custom input form
isShowSubmitButton()
Returns if the submit button should be shown.
public
isShowSubmitButton() : bool
Tags
Return values
bool —show submit button
supportsToRememberDevice()
public
supportsToRememberDevice() : bool
Tags
Return values
bool —verify2ndFactor()
{@inheritDoc}
public
verify2ndFactor(mixed $user, mixed $password, mixed $serial, mixed $twoFactorInput) : mixed
Parameters
- $user : mixed
- $password : mixed
- $serial : mixed
- $twoFactorInput : mixed
Tags
Return values
mixed —getLoginAttributeValue()
Returns the value of the user attribute in LDAP.
protected
getLoginAttributeValue(string $userDn) : string
Parameters
- $userDn : string
-
user DN
Return values
string —user name
getAccessCode()
Reads the access code using code.
private
getAccessCode(string $code) : string|null
Parameters
- $code : string
-
code parameter from request
Return values
string|null —access token