{"id":13507455,"url":"https://github.com/ueberauth/ueberauth_twitter","last_synced_at":"2025-03-30T08:30:32.065Z","repository":{"id":47080268,"uuid":"46392945","full_name":"ueberauth/ueberauth_twitter","owner":"ueberauth","description":"Twitter Strategy for Überauth","archived":false,"fork":false,"pushed_at":"2021-10-17T18:19:26.000Z","size":65,"stargazers_count":36,"open_issues_count":8,"forks_count":39,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-15T05:45:39.543Z","etag":null,"topics":["oauth","oauth2","twitter","twitter-oauth","ueberauth","ueberauth-strategies"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ueberauth.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2015-11-18T03:33:18.000Z","updated_at":"2024-05-16T02:38:04.000Z","dependencies_parsed_at":"2022-09-10T17:40:57.906Z","dependency_job_id":null,"html_url":"https://github.com/ueberauth/ueberauth_twitter","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ueberauth%2Fueberauth_twitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ueberauth%2Fueberauth_twitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ueberauth%2Fueberauth_twitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ueberauth%2Fueberauth_twitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ueberauth","download_url":"https://codeload.github.com/ueberauth/ueberauth_twitter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246296366,"owners_count":20754625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["oauth","oauth2","twitter","twitter-oauth","ueberauth","ueberauth-strategies"],"created_at":"2024-08-01T02:00:34.057Z","updated_at":"2025-03-30T08:30:31.714Z","avatar_url":"https://github.com/ueberauth.png","language":"Elixir","funding_links":[],"categories":["Authentication"],"sub_categories":[],"readme":"# Überauth Twitter\n\n[![Module Version](https://img.shields.io/hexpm/v/ueberauth_twitter.svg)](https://hex.pm/packages/ueberauth_twitter)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/ueberauth_twitter/)\n[![Total Download](https://img.shields.io/hexpm/dt/ueberauth_twitter.svg)](https://hex.pm/packages/ueberauth_twitter)\n[![License](https://img.shields.io/hexpm/l/ueberauth_twitter.svg)](https://github.com/ueberauth/ueberauth_twitter/blob/master/LICENSE.md)\n[![Last Updated](https://img.shields.io/github/last-commit/ueberauth/ueberauth_twitter.svg)](https://github.com/ueberauth/ueberauth_twitter/commits/master)\n\n\u003e Twitter strategy for Überauth.\n\n_Note_: Sessions are required for this strategy.\n\n## Installation\n\n1. Setup your application at [Twitter Developers](https://dev.twitter.com/).\n\n2.  Add `:ueberauth_twitter` to your list of dependencies in `mix.exs`:\n\n    ```elixir\n    def deps do\n      [\n        {:ueberauth_twitter, \"~\u003e 0.4\"}\n      ]\n    end\n    ```\n\n3.  Add Twitter to your Überauth configuration:\n\n    ```elixir\n    config :ueberauth, Ueberauth,\n      providers: [\n        twitter: {Ueberauth.Strategy.Twitter, []}\n      ]\n    ```\n\n4.  Update your provider configuration:\n\n    ```elixir\n    config :ueberauth, Ueberauth.Strategy.Twitter.OAuth,\n      consumer_key: System.get_env(\"TWITTER_CONSUMER_KEY\"),\n      consumer_secret: System.get_env(\"TWITTER_CONSUMER_SECRET\")\n    ```\n\n5.  Include the Überauth plug in your controller:\n\n    ```elixir\n    defmodule MyApp.AuthController do\n      use MyApp.Web, :controller\n      plug Ueberauth\n      ...\n    end\n    ```\n\n6.  Create the request and callback routes if you haven't already:\n\n    ```elixir\n    scope \"/auth\", MyApp do\n      pipe_through :browser\n\n      get \"/:provider\", AuthController, :request\n      get \"/:provider/callback\", AuthController, :callback\n    end\n    ```\n\n7. Your controller needs to implement callbacks to deal with `Ueberauth.Auth`\n   and `Ueberauth.Failure` responses.\n\nFor an example implementation see the [Überauth Example](https://github.com/ueberauth/ueberauth_example) application.\n\n## Calling\n\nDepending on the configured url you can initiate the request through:\n\n    /auth/twitter\n\n## Development mode\n\nAs noted when registering your application on the Twitter Developer site, you need to explicitly specify the `oauth_callback` url.  While in development, this is an example url you need to enter.\n\n    Website - http://127.0.0.1\n    Callback URL - http://127.0.0.1:4000/auth/twitter/callback\n\n## Copyright and License\n\nCopyright (c) 2015 Sean Callan\n\nThis library is released under the MIT License. See the [LICENSE.md](./LICENSE.md) file\nfor further details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fueberauth%2Fueberauth_twitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fueberauth%2Fueberauth_twitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fueberauth%2Fueberauth_twitter/lists"}