Skip to content

Commit

Permalink
Allow new CAS connection with same instance
Browse files Browse the repository at this point in the history
In some case, we need to test more than on CAS server

Looks near to apereo#68

```php
/* Check different CAS */   
    for ($i = 0; $i < $nb_server; $i++) {     
        //Init connection
        phpCAS::client(CAS_VERSION_2_0,$config[$i]['host'],$config[$i]['port'],$config[$i]['uri'],true,true);
        phpCAS::setNoCasServerValidation();
        //Check authentification
        if ($auth = phpCAS::checkAuthentication()) {
            echo "server $i is ok"   
            break;
        }
    }
```
  • Loading branch information
camlafit committed Aug 25, 2014
1 parent 12d6f65 commit 3e3e2f2
Showing 1 changed file with 1,895 additions and 1,895 deletions.

0 comments on commit 3e3e2f2

Please sign in to comment.