Index: trunk/extensions/CrowdAuthentication/CrowdAuthentication.php |
— | — | @@ -33,6 +33,13 @@ |
34 | 34 | |
35 | 35 | $wgExtensionMessagesFiles['CrowdAuthentication'] = dirname( __FILE__ ) . '/CrowdAuthentication.i18n.php'; |
36 | 36 | |
| 37 | +$caApplicationName = 'mediawiki'; |
| 38 | +$caApplicationPassword = ''; |
| 39 | +$caCrowdServerUrl = 'http://localhost:8095/crowd/services'; |
| 40 | +$caDefaultGroups = array("jira-users", "confluence-users"); |
| 41 | +$caImportGroups = true; |
| 42 | +$caOverwriteLocalGroups = false; |
| 43 | + |
37 | 44 | class caPasswordCredential { |
38 | 45 | /** |
39 | 46 | * @var string |
— | — | @@ -331,8 +338,10 @@ |
332 | 339 | |
333 | 340 | try { |
334 | 341 | $crowd->addPrincipal( array( "in0" => $this->token, |
335 | | - "in1" => $principal, |
336 | | - "in2" => $cred ) ); |
| 342 | + "in1" => $principal, |
| 343 | + "in2" => $cred |
| 344 | + ) |
| 345 | + ); |
337 | 346 | foreach ( $caDefaultGroups as $group ) { |
338 | 347 | $crowd->addPrincipalToGroup( array( "in0" => $this->token, "in1" => $user->getName(), "in2" => $group ) ); |
339 | 348 | } |