I’ve released a login and registration extension on GitHub. This is a free extension and has been submitted to WordPress.org for review. If accepted, we will be able to install it via the TwitchPress Setup Wizard. All free extensions will be available in the wizard, for quick-install.
WordPress Login Via Twitch
Activating the plugin will add a new button to the Login page. Clicking it will take visitors to Twitch.tv to complete the oAuth2 procedure. The visitor will be returned to the login page (/wp-login.php) and the TwitchPress Login Extension will process values in the URL.
No Existing Account
If there is no existing account for the visitor, the extension will create one. So this extension allows quick registration.
Existing Account Found
If my extension finds an existing account, the visitor will be logged into that WP account.
At this early stage, the TwitchPress Login Extension is built for the most common requirements. How the plugin handles various scenarios, is changeable with further work and settings will be created to give administrators more option.
There is no button on the Registration page, so that will come soon. We also need a range of options for administrators to configure how they wish to handle visitors.
- Do they want registration at all or only login?
- Do they want automatic registration after the visitor clicks on the Twitch Login button or forward the visitor to the Registration form?
- Do they want the visitor to register using the normal WordPress procedure and then authorize their Twitch account once on their dashboard?
Please submit comments with suggestions or requests. Remember to use GitHub if you wish to influence the project in a more direct manner.
What is an extension?
I’ll finish by clarifying what an extension is. It’s actually just another WP plugin. The difference is that it relies on the core plugin to be active, not just installed. If the TwitchPress plugin has not been activated, you cannot activate the extension, it will simply fail when attempted. This reliance makes TwitchPress Login Extension an extension to the main plugin, no other.