diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-02-16 13:47:45 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-02-16 17:23:46 +0300 |
commit | 1a1a11c8e965fac05031295ee3557802887805ea (patch) | |
tree | 16ad2110551e507ddfd76faf884b938d25ed332d /templates/admin.php | |
parent | e8e3a513a3447be94da527c71115354e1a84938d (diff) |
Add support for mapping attributes
This adds support for mapping attributes for full name and email
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'templates/admin.php')
-rw-r--r-- | templates/admin.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/admin.php b/templates/admin.php index 5b8ab034..3e74568e 100644 --- a/templates/admin.php +++ b/templates/admin.php @@ -79,6 +79,26 @@ style('user_saml', 'admin'); <p><textarea name="x509cert" placeholder="<?php p($l->t('Public X.509 certificate of the IdP')) ?>"><?php p(\OC::$server->getConfig()->getAppValue('user_saml', 'idp-x509cert', '')) ?></textarea></p> </div> </div> + + <div id="user-saml-attribute-mapping" class="hidden"> + <h3><?php p($l->t('Attribute mapping')) ?></h3> + <p> + <?php print_unescaped($l->t('If you want to optionally map SAML attributes to the user you can configure these here.')) ?> + <span class="toggle"><?php p($l->t('Show attribute mapping settings ...')) ?></span> + </p> + + <div class="hidden"> + <?php foreach($_['attributeMappings'] as $key => $attribute): ?> + <?php + if($attribute['type'] === 'line'): ?> + <p> + <input name="<?php p($key) ?>" value="<?php p(\OC::$server->getConfig()->getAppValue('user_saml', 'saml-attribute-mapping-'.$key, '')) ?>" type="text" <?php if(isset($attribute['required']) && $attribute['required'] === true): ?>class="required"<?php endif;?> placeholder="<?php p($attribute['text']) ?>"/> + </p> + <?php endif; ?> + <?php endforeach; ?> + </div> + </div> + <div id="user-saml-security"> <h3><?php p($l->t('Security settings')) ?></h3> <p> |