Silverstripe Version: 4.7
Question:
I was trying to register a custom MemberAuthenticator as default authenticator in my app.yml as in the example shown below. However, I get the error “Uncaught Symfony\Component\Yaml\Exception\ParseException: The reserved indicator “%” cannot start a plain scalar; you need to quote the scalar”.
When I quote the whole thing it doesn’t cause an error, but my authenticator isn’t being used. Same when removing %$ (here I also tried with and without quotes) it just always falls back to the regular MemberAuthenticator. Is there anything I might be doing wrong?
My custom handlers work absolutely fine.
```
---
Name: MyAuth
After:
- '#coresecurity'
---
SilverStripe\Core\Injector\Injector:
SilverStripe\Security\Security:
properties:
Authenticators:
default: %$MyVendor\MyProject\Authenticator\MyAuthenticator
```