Remote Auth is Kirby CMS plugin for adding a "Login with Twitter" and "Login with GitHub" button to your website. Let your users authenticate them using Twitter or GitHub OAuth.
- Copy
content/auth
tocontent/auth
- Copy
plugins/remote-auth
toplugins/remote-auth
- Copy
snippets/login.php
tosnippets/login.php
- Copy
templates/*.php
totemplates/*.php
For using Twitter and GitHub as OAuth providers, you have to register an application at both sites first and add the following configuration variables to your site/config/config.php
file:
c::set('rauth.twitter.key', 'TwitterClientID');
c::set('rauth.twitter.secret', 'TwitterClientSecret');
c::set('rauth.twitter.callback', 'YOURKIRBYURL/auth/auth:twitter');
c::set('rauth.github.key', 'GitHubClientID');
c::set('rauth.github.secret', 'GitHubClientSecret');
c::set('rauth.github.callback', 'YOURKIRBYURL/auth/auth:github');
Remote Auth uses TwitterOAuth by Abraham Williams.
2014 Sebastian Müller