|
|
|
# Two Factor Authentication
|
|
|
|
|
|
|
|
Two factor authentication is configured with a (script)[/configuration/scripts].
|
|
|
|
Two factor authentication is configured with a [script](/configuration/scripts). The configuration is resolved through the ´resolveConfig´ method. An example configuration:
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
var resolveConfig = function (scriptingEnv, configMap, identity, logger) {
|
|
|
|
logger.debug("Starting linotp config resolv");
|
|
|
|
|
|
|
|
|
|
|
|
for each (user in identity.getUsers()) {
|
|
|
|
if (user.getIdp().getEntityId().equals("<entity-id>")) {
|
|
|
|
logger.debug("Using alternative Linotp Server");
|
| ... | ... | @@ -29,3 +28,4 @@ var resolveConfig = function (scriptingEnv, configMap, identity, logger) { |
|
|
|
};
|
|
|
|
|
|
|
|
```
|
|
|
|
|