Giter VIP home page Giter VIP logo

twitter's Introduction

Opauth-Twitter

Twitter strategy for Opauth, based on Opauth-OAuth.

Getting started

  1. Install Opauth-Twitter:

    cd path_to_opauth/Strategy
    git clone [email protected]:opauth/twitter.git Twitter

    or

    composer require opauth/twitter
  2. Create Twitter application at https://dev.twitter.com/apps

    • Make sure to enter a Callback URL or callback will be disallowed.
      Callback URL can be a made up one as Opauth will explicitly provide the correct one as part of the OAuth process.
    • Register your domains at @Anywhere domains.
      Twitter only allows authentication from authorized domains.
  3. Configure Opauth-Twitter strategy with at least Consumer key and Consumer secret.

  4. Direct user to http://path_to_opauth/twitter to authenticate

Strategy configuration

Required parameters:

<?php
'Twitter' => array(
	'key' => 'YOUR CONSUMER KEY',
	'secret' => 'YOUR CONSUMER SECRET'
)

See Twitter.php for optional parameters.

Opauth-Twitter does "Sign In with Twitter" by default.
If you prefer to do a 3-legged OAuth, explicitly add authenticate_url parameter to strategy configuration and set it to https://api.twitter.com/oauth/authorize.

Dependencies

tmhOAuth requires hash_hmac and cURL.
hash_hmac is available on PHP 5 >= 5.1.2.

Reference

License

Opauth-Twitter is MIT Licensed
Copyright © 2012 U-Zyn Chua (http://uzyn.com)

tmhOAuth is Apache 2 licensed.

twitter's People

Contributors

angelxmoreno avatar bishop avatar ceeram avatar machour avatar nashjain avatar skennedy1492 avatar thejsa avatar uzyn avatar yuzurus avatar

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.