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

View Replies:
andrew replied on at Permalink Reply
andrew
Unfortunately we don't have any documentation for this yet. The only way to install a new authentication type is through a package. If you copy a core authentication method from concrete/authentication/__handle__ to packages/your_package/authentication/your_method

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.
rgudinho replied on at Permalink Reply
rgudinho
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.