| 321 | |
| 322 | |
| 323 | AuthenticationResult createCombinedForbidden( |
| 324 | const vector<MockAuthenticator>& authenticators) |
| 325 | { |
| 326 | AuthenticationResult result; |
| 327 | vector<string> bodies; |
| 328 | |
| 329 | foreach (const MockAuthenticator& authenticator, authenticators) { |
| 330 | bodies.push_back( |
| 331 | "\"" + authenticator.scheme() + "\" authenticator returned:\n" + |
| 332 | authenticator.scheme() + " forbidden"); |
| 333 | } |
| 334 | |
| 335 | result.forbidden = Forbidden(strings::join("\n\n", bodies)); |
| 336 | |
| 337 | return result; |
| 338 | } |
| 339 | |
| 340 | |
| 341 | // Verifies the functionality of the `CombinedAuthenticator`. |