Zitadel PHP Client 1.3.6
PHP Client for Zitadel
|
Public Member Functions | |
__construct (array $settings) | |
setSessionId (string $sessionId) | |
setSessionToken (string $sessionToken) | |
setPassword (string $password) | |
setIdpIntentId (string $idpIntentId) | |
setIdpIntentToken (string $idpIntentToken) | |
setTOTPCode (string $totpCode) | |
setSmsCode (string $smsCode) | |
setOtpEmail (string $otpEmail) | |
returnSmsCode () | |
returnEmailCode () | |
setLifetime (int $seconds) | |
getSmsCode () | |
getEmailCode () | |
update () | |
Update a session. First, you have to set the session id and the session token. Then, you can define checks e.g. the Password or TOTP-Codes. If one check fails, the session won't be created. You can also define challenges e.g. an Email-OTP or SMS-OTP. Then, the Zitadel-API will send back the code.
Definition at line 13 of file Update.php.
__construct | ( | array | $settings | ) |
Initialize the Session create setup
$settings | array The settings array |
Definition at line 24 of file Update.php.
getEmailCode | ( | ) |
Returns the Email-OTP-Code. Works only, if you used the function returnEmailCode() before.
Definition at line 126 of file Update.php.
getSmsCode | ( | ) |
Returns the SMS-OTP-Code. Works only, if you used the function returnSmsCode() before.
Definition at line 119 of file Update.php.
returnEmailCode | ( | ) |
returnSmsCode | ( | ) |
setIdpIntentId | ( | string | $idpIntentId | ) |
Set the check "External Identity Providers". You also have to set the IDP-Intent-Token. You get the required value from the IDP-class.
string | $idpIntentId | The IDP-Intent-ID |
Definition at line 57 of file Update.php.
setIdpIntentToken | ( | string | $idpIntentToken | ) |
Set the check "External Identity Providers". You also have to set the IDP-Intent-ID. You get the required value from the IDP-class.
string | $idpIntentToken | The IDP-Intent-Token |
Definition at line 66 of file Update.php.
setLifetime | ( | int | $seconds | ) |
Set the session lifetime
int | $seconds | Duration in Seconds after which the session will be automatically invalidated |
Definition at line 112 of file Update.php.
setOtpEmail | ( | string | $otpEmail | ) |
Set the check "Email-OTP".
string | $otpEmail | The Email-Code |
Definition at line 90 of file Update.php.
setPassword | ( | string | $password | ) |
Set the check "password".
string | $password | The user password |
Definition at line 48 of file Update.php.
setSessionId | ( | string | $sessionId | ) |
Set the session id (required).
string | $sessionId | The session id |
Definition at line 32 of file Update.php.
setSessionToken | ( | string | $sessionToken | ) |
Set the session token (required).
string | $sessionToken | The session token |
Definition at line 40 of file Update.php.
setSmsCode | ( | string | $smsCode | ) |
Set the check "SMS-OTP".
string | $smsCode | The SMS-Code |
Definition at line 82 of file Update.php.
setTOTPCode | ( | string | $totpCode | ) |
Set the check "TOTP-Code".
string | $totpCode | The TOTP-Code |
Definition at line 74 of file Update.php.
update | ( | ) |
Updates the session
Exception | Returns an error, if the communication with Zitadel fails or one of the checks fails. |
Definition at line 134 of file Update.php.