silverstripe-framework/tests/php/Security
Sam Minnee e226b67d06 Refactoring of authenticators
Further down the line, I'm only returning the `Member` on the doLogin, so it's possible for the Handler or Extending Handler to move to a second step.
Also cleaned up some minor typos I ran in to. Nothing major.

This solution works and is manually tested for now. Supports multiple login forms that end up in the correct handler. I haven't gotten past the handler yet, as I've yet to refactor my Yubiauth implementation.

FIX: Corrections to the multi-login-form support.

Importantly, the system provide a URL-space for each handler, e.g.
“Security/login/default” and “Security/login/other”. This is much
cleaner than identifying the active authenticator by a get parameter,
and means that the tabbed interface is only needed on the very first view.

Note that you can test this without a module simply by loading the
default authenticator twice:

SilverStripe\Security\Security:
  authenticators:
    default: SilverStripe\Security\MemberAuthenticator\Authenticator
    other: SilverStripe\Security\MemberAuthenticator\Authenticator

FIX: Refactor delegateToHandler / delegateToHandlers to have less
duplicated code.
2017-06-07 21:11:52 +12:00
..
BasicAuthTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
GroupCsvBulkLoaderTest API Namespace framework tests 2016-11-23 19:25:12 +13:00
GroupTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
InheritedPermissionsTest API Implement InheritedPermission calculator (#6877) 2017-05-11 21:07:27 +12:00
MemberCsvBulkLoaderTest API Namespace framework tests 2016-11-23 19:25:12 +13:00
MemberTest API Remove Object class 2017-05-23 13:50:35 +12:00
PasswordEncryptorTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
SecurityTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
BasicAuthTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
BasicAuthTest.yml Move files to psr-2 standard locations 2016-11-23 19:25:12 +13:00
GroupCsvBulkLoaderTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
GroupCsvBulkLoaderTest.yml Move files to psr-2 standard locations 2016-11-23 19:25:12 +13:00
GroupTest.php Ran upgrader for lang files 2017-04-28 14:59:42 +12:00
GroupTest.yml API Namespace framework tests 2016-11-23 19:25:12 +13:00
InheritedPermissionsTest.php API Implement InheritedPermission calculator (#6877) 2017-05-11 21:07:27 +12:00
InheritedPermissionsTest.yml API Implement InheritedPermission calculator (#6877) 2017-05-11 21:07:27 +12:00
MemberAuthenticatorTest.php Ran upgrader for lang files 2017-04-28 14:59:42 +12:00
MemberCsvBulkLoaderTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
MemberCsvBulkLoaderTest.yml Move files to psr-2 standard locations 2016-11-23 19:25:12 +13:00
MemberTest.php API Remove Object class 2017-05-23 13:50:35 +12:00
MemberTest.yml Move files to psr-2 standard locations 2016-11-23 19:25:12 +13:00
PasswordEncryptorTest.php Respect PHPUnit method visibility 2017-03-24 16:23:03 +13:00
PasswordValidatorTest.php TEST Add historical password count test 2016-12-30 00:43:14 +13:00
PermissionCheckboxSetFieldTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
PermissionCheckboxSetFieldTest.yml Move files to psr-2 standard locations 2016-11-23 19:25:12 +13:00
PermissionRoleTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
PermissionRoleTest.yml Move files to psr-2 standard locations 2016-11-23 19:25:12 +13:00
PermissionTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
PermissionTest.yml Move files to psr-2 standard locations 2016-11-23 19:25:12 +13:00
RandomGeneratorTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
SecurityDefaultAdminTest.php API Upgrade to behat 3 2017-05-05 14:32:07 +12:00
SecurityTest.php Refactoring of authenticators 2017-06-07 21:11:52 +12:00
SecurityTokenTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00