wink
wink copied to clipboard
Feature - disable auth routes
Hi,
I hope this proves to be a useful pull request - thanks for providing the Wink package for our use.
I would like to use Wink with the standard Laravel authentication, rather than adapt how Wink approaches authentication, I would like to disable the provision of authentication routes by Wink (and provide relevant alternatives).
Then my application woould become responsible for logging in a Wink Author, and ensuring that the Wink Author details are kept in sync with the appropiate Application user. In my case, I will use the Application to set up Wink Authors and to keep them in sync through event handlers for user updates. I will also log in an associated Wink Author when the Authenticated Event is fired in the Laravel Application.
I have tried to keep the changes minimal, and varied through the configuration file - with defaults to maintain current behaviour. There are a few new configuration options that we can use.
// name => default
'wink.authentication.routes_enabled' => true,
'wink.authentication.login_route_name' => 'wink.auth.login',
'wink.authentication.logout_route_name' => 'wink.logout',
I am happy to add documentation if this is an acceptable approach.