Need help on installing new Authentication Type
Permalink
Hi All,
What is the best method to install a new AuthenticationType?
Does it work like BlockType where it will automatically appear when I inherit the controller to AuthenticationTypeController?
Where can I find information of this?
Thanks,
SP
What is the best method to install a new AuthenticationType?
Does it work like BlockType where it will automatically appear when I inherit the controller to AuthenticationTypeController?
Where can I find information of this?
Thanks,
SP
hi Andrew, is there any documentation on this? I'm running into similar issues when calling this method ( \Concrete\Core\Authentication\AuthenticationType::add() ) from a Package Installer, specifically the PkgID is not set in the table, in order for the new Type to be found and be enabled in the Auth Type list I need to go to the Packages table, get the ID of my package and set it on the AuthorizationTypes table in the newly created record.
create a package in your package install() method run
\Concrete\Core\Authentication\AuthenticationType::('your_method', 'Your method', $pkg);
Then this will install an authentication type which can then be enabled via the dashboard, and you can then work on actually customization the authentication controller, etc...
This is very light on the details but hopefully it will point you in the right direction.