oauth strategy for ueberauth lib using data from OSM
Go to file
Sean Callan 8330fa308b Initial commit 2015-11-17 19:34:26 -08:00
.gitignore Initial commit 2015-11-17 19:34:26 -08:00
README.md Initial commit 2015-11-17 19:34:26 -08:00

README.md

Überauth Twitter

Twitter strategy for Überauth.

Setup

Include the provider in your configuration for Überauth:

config :ueberauth, Ueberauth,
  providers: [
    twitter: [ { Ueberauth.Strategy.Twitter, [] } ]
  ]

Then configure your provider:

config :ueberauth, Ueberauth.Strategy.Twitter.OAuth,
  client_id: System.get_env("TWITTER_API_KEY"),
  client_secret: System.get_env("TWITTER_API_SECRET")

For an example implementation see the Überauth Example application.

Installation

If available in Hex, the package can be installed as:

  1. Add :ueberauth_twitter to your list of dependencies in mix.exs:

    def deps do
      [{:ueberauth_twitter, "~> 0.1.0"}]
    end