The values for a secure connection are given in your mfa server. Open the administration -> tab "Wep apps" -> your application (or create a new app) and copy the values from the shown snippet.
| Key | Type | Descriptio
|--- |--- |---
| api 🔸 | string | api url
| appid 🔸 | string | Given ID for your application
| shared_secret 🔸| string | Generated secret for your application
| user | string | User id of logged in user
| debug | bool | Flag: global debugging (for dev environment only)
🔸 required
If the user id is not in $_SERVER['REMOTE_USER'] then there are 2 options:
* mfaconfig.php: correct the fieldname of $_SERVER or set your own variable
* mfa-ensure.php: enable the line `$mfa->setUser(<your-function-to-fetch-userid>);`
**📌 Example**:
```php
<?php
require_once__DIR__.'/mfaclient.class.php';
$mfa=newmfaclient();
// if user was not set in config, set it manually
$mfa->setUser($this->getUserid());
$iHttpStatus=$mfa->ensure();
```
### Activate MFA after logon
This step depends on your code. You need to find a good place to embed the MFA process.