Coder Social home page Coder Social logo

kirbycms-oauth-consumer's Introduction

Remote Auth Plugin for Kirby CMS

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.

Installation

  • Copy content/auth to content/auth
  • Copy plugins/remote-auth to plugins/remote-auth
  • Copy snippets/login.php to snippets/login.php
  • Copy templates/*.php to templates/*.php

Configuration

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');

Dependencies

Remote Auth uses TwitterOAuth by Abraham Williams.

License

MIT License

Copyright

2014 Sebastian Müller

sbstjn.com @sbstjn at twitter

kirbycms-oauth-consumer's People

Contributors

sbstjn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

thatleeguy

kirbycms-oauth-consumer's Issues

call to urL::valid() in remote-auth.php fails

Seems like in the latest Kirby Toolkit the valid method in the Url class has been removed. At least when using the kirby oauth plugin with Kirby 2.0.6 the following error is given.

Fatal error: Call to undefined method Url::valid() in /site/plugins/remote-auth/remote-auth.php on line 101

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.