Skip to content
Snippets Groups Projects
  • Lasse Birnbaum Jensen's avatar
    Implemented issue 99. http://code.google.com/p/simplesamlphp/issues/detail?id=99 · eae7b852
    Lasse Birnbaum Jensen authored
    !! IMPORTANT !!
    This patch may break existing configurations if custom attributealter functions are used.
    
    To use the new implementation attributealter function must be placed in a specific file for that function. 
    
    Example: attributealter function insertorgname which insert a static organization name in the attribute set.
    
    Function must be placed in file attributealter/insertorgname.php and have the following content.
    
    attributealter/insertorgname.php
    <?php
    
    function attributealter_insertorgname($attributes,$spid = null, $idpid=null) {
    $attributes['orgname']=array('static name');
    }
      
    
    
    
    
    git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@636 44740490-163a-0410-bde0-09ae8108e29a
    eae7b852
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
test.php 142 B
<?php
function attributealter_test(&$attributes, $spentityid = null, $idpentityid = null) {
	$attributes['injected'] = array('newvalue');
}
?>