All Projects → ueberauth → Ueberauth_twitter

ueberauth / Ueberauth_twitter

Licence: mit
Twitter Strategy for Überauth

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to Ueberauth twitter

Auth
:atom: Social (OAuth1\OAuth2\OpenID\OpenIDConnect) sign with PHP
Stars: ✭ 457 (+1374.19%)
Mutual labels:  oauth2, oauth, twitter
Assent
Multi-provider framework in Elixir
Stars: ✭ 126 (+306.45%)
Mutual labels:  oauth2, oauth, twitter
Pow assent
Multi-provider authentication for your Pow enabled app
Stars: ✭ 236 (+661.29%)
Mutual labels:  oauth2, oauth, twitter
Doorkeeper
Doorkeeper is an OAuth 2 provider for Ruby on Rails / Grape.
Stars: ✭ 4,917 (+15761.29%)
Mutual labels:  oauth2, oauth
Buji Pac4j
pac4j security library for Shiro: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 444 (+1332.26%)
Mutual labels:  oauth, twitter
Sns auth
通用第三方登录SDK,支持微信,微信扫码,QQ,微博登录,支付宝登录,Facebook,Line,Twitter,Google
Stars: ✭ 520 (+1577.42%)
Mutual labels:  oauth2, twitter
Passport
Simple, unobtrusive authentication for Node.js.
Stars: ✭ 19,608 (+63151.61%)
Mutual labels:  oauth, oauth2
Next Auth
Authentication for Next.js
Stars: ✭ 8,362 (+26874.19%)
Mutual labels:  oauth2, oauth
Scribejava
Simple OAuth library for Java
Stars: ✭ 5,223 (+16748.39%)
Mutual labels:  oauth2, oauth
Web Framework For Java
A seed project with spring boot for AngularJS, AngularJs Material, Thymeleaf, RESTful API, MySQL and admin panel based on AdminLTE.
Stars: ✭ 29 (-6.45%)
Mutual labels:  oauth2, oauth
Fw Cloud Framework
基于springcloud全家桶开发分布式框架(支持oauth2认证授权、SSO登录、统一下单、微信公众号服务、Shardingdbc分库分表、常见服务监控、链路监控、异步日志、redis缓存等功能),实现基于Vue全家桶等前后端分离项目工程
Stars: ✭ 717 (+2212.9%)
Mutual labels:  oauth2, oauth
Yii2 Authclient
Yii 2 authclient extension.
Stars: ✭ 430 (+1287.1%)
Mutual labels:  oauth, twitter
Retroauth
A library build on top of retrofit, for simple handling of authenticated requests
Stars: ✭ 405 (+1206.45%)
Mutual labels:  oauth2, oauth
Spruce
A social networking platform made using Node.js and MongoDB
Stars: ✭ 399 (+1187.1%)
Mutual labels:  oauth2, oauth
Mod auth openidc
OpenID Connect Relying Party implementation for Apache HTTP Server 2.x
Stars: ✭ 677 (+2083.87%)
Mutual labels:  oauth2, oauth
Cpprestsdk
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Stars: ✭ 6,631 (+21290.32%)
Mutual labels:  oauth2, oauth
React Native Inappbrowser
📱InAppBrowser for React Native (Android & iOS) 🤘
Stars: ✭ 624 (+1912.9%)
Mutual labels:  oauth2, oauth
Play Silhouette
Silhouette is an authentication library for Play Framework applications that supports several authentication methods, including OAuth1, OAuth2, OpenID, CAS, 2FA, TOTP, Credentials, Basic Authentication or custom authentication schemes.
Stars: ✭ 826 (+2564.52%)
Mutual labels:  oauth2, oauth
Oauth
🔗 OAuth 2.0 implementation for various providers in one place.
Stars: ✭ 336 (+983.87%)
Mutual labels:  oauth2, oauth
Play Pac4j
Security library for Play framework 2 in Java and Scala: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 375 (+1109.68%)
Mutual labels:  oauth, twitter

Überauth Twitter

Twitter strategy for Überauth.

Note: Sessions are required for this strategy.

Installation

  1. Setup your application at Twitter Developers.

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

    def deps do
      [
        {:ueberauth_twitter, "~> 0.3"}
      ]
    end
    
  3. Add Twitter to your Überauth configuration:

    config :ueberauth, Ueberauth,
      providers: [
        twitter: {Ueberauth.Strategy.Twitter, []}
      ]
    
  4. Update your provider configuration:

    config :ueberauth, Ueberauth.Strategy.Twitter.OAuth,
      consumer_key: System.get_env("TWITTER_CONSUMER_KEY"),
      consumer_secret: System.get_env("TWITTER_CONSUMER_SECRET")
    
  5. Include the Überauth plug in your controller:

    defmodule MyApp.AuthController do
      use MyApp.Web, :controller
      plug Ueberauth
      ...
    end
    
  6. Create the request and callback routes if you haven't already:

    scope "/auth", MyApp do
      pipe_through :browser
    
      get "/:provider", AuthController, :request
      get "/:provider/callback", AuthController, :callback
    end
    
  7. Your controller needs to implement callbacks to deal with Ueberauth.Auth and Ueberauth.Failure responses.

For an example implementation see the Überauth Example application.

Calling

Depending on the configured url you can initiate the request through:

/auth/twitter

Development mode

As 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.

Website - http://127.0.0.1
Callback URL - http://127.0.0.1:4000/auth/twitter/callback

License

Please see LICENSE for licensing details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].