@@ -17,7 +17,7 @@ You need to add the authentication source 'privacyidea' to
...
@@ -17,7 +17,7 @@ You need to add the authentication source 'privacyidea' to
`config/authsources.php`. _example-privacyidea_ is the name used to identify this module, it can be changed to your liking. The following is a template configuration:
`config/authsources.php`. _example-privacyidea_ is the name used to identify this module, it can be changed to your liking. The following is a template configuration:
```PHP
```PHP
'example-privacyidea' => array(
'example-privacyidea' => [
'privacyidea:PrivacyideaAuthSource',
'privacyidea:PrivacyideaAuthSource',
/*
/*
...
@@ -100,35 +100,35 @@ You need to add the authentication source 'privacyidea' to
...
@@ -100,35 +100,35 @@ You need to add the authentication source 'privacyidea' to
* SAML attribute names.
* SAML attribute names.
* Optional.
* Optional.
*/
*/
'attributemap' => array(
'attributemap' => [
'username' => 'samlLoginName',
'username' => 'samlLoginName',
'surname' => 'surName',
'surname' => 'surName',
'givenname' => 'givenName',
'givenname' => 'givenName',
'email' => 'emailAddress',
'email' => 'emailAddress',
'phone' => 'telePhone',
'phone' => 'telePhone',
'mobile' => 'mobilePhone'
'mobile' => 'mobilePhone'
),
],
/*
/*
* You are able to concatenate attributes like the given and surname.
* You are able to concatenate attributes like the given and surname.
* Optional.
* Optional.
*/
*/
'concatenationmap' => array(
'concatenationmap' => [
'givenname,surname' => 'fullName',
'givenname,surname' => 'fullName',
),
],
/*
/*
* Here the detail attributes can be edited.
* Here the detail attributes can be edited.
* If they should not be listed, just remove them.
* If they should not be listed, just remove them.
* Optional.
* Optional.
*/
*/
'detailmap' => array(
'detailmap' => [
'message' => 'message',
'message' => 'message',
'type' => 'otpType',
'type' => 'otpType',
'serial' => 'otpSerial',
'serial' => 'otpSerial',
'otplen' => 'otpLength'
'otplen' => 'otpLength'
),
],
),
],
```
```
## User attributes
## User attributes
...
@@ -151,12 +151,12 @@ attribute 'groups', you can map that to 'groups' if you include it in the attrib
...
@@ -151,12 +151,12 @@ attribute 'groups', you can map that to 'groups' if you include it in the attrib
If you want to use privacyIDEA as an auth process filter, add the configuration to the metadata file (e.g. `simplesaml/metadata/saml20-idp-hosted.php`.
If you want to use privacyIDEA as an auth process filter, add the configuration to the metadata file (e.g. `simplesaml/metadata/saml20-idp-hosted.php`.
```PHP
```PHP
'authproc' => array(
'authproc' => [
/**
/**
* Configuration for the privacyIDEA server.
* Configuration for the privacyIDEA server.
*/
*/
20 => array(
20 => [
'class' => 'privacyidea:PrivacyideaAuthProc',
'class' => 'privacyidea:PrivacyideaAuthProc',
/**
/**
...
@@ -174,7 +174,7 @@ If you want to use privacyIDEA as an auth process filter, add the configuration
...
@@ -174,7 +174,7 @@ If you want to use privacyIDEA as an auth process filter, add the configuration
* You can choose a single one or multiple ones. The first set will be used.
* You can choose a single one or multiple ones. The first set will be used.
*/
*/
'uidKey' => 'uid',
'uidKey' => 'uid',
// 'uidKey' => array('uid', 'userName', 'uName'),
// 'uidKey' => ['uid', 'userName', 'uName'],
/**
/**
* Check if the hostname matches the name in the certificate.
* Check if the hostname matches the name in the certificate.
...
@@ -265,7 +265,7 @@ If you want to use privacyIDEA as an auth process filter, add the configuration
...
@@ -265,7 +265,7 @@ If you want to use privacyIDEA as an auth process filter, add the configuration
* Enter a range like "10.0.0.0-10.2.0.0" or a single ip like "192.168.178.2"
* Enter a range like "10.0.0.0-10.2.0.0" or a single ip like "192.168.178.2"