Sha256: 3ea6c9df6e57c9cead9325c55b480168df2cb83c0ebb9c70b01a8b5f58549b78
Contents?: true
Size: 1.13 KB
Versions: 3
Compression:
Stored size: 1.13 KB
Contents
# OmniAuth Line This gem contains the Line OAuth2 Strategy for OmniAuth. Supports the OpenID Connect Web Login. Read the Line developers docs for more details: https://developers.line.me/en/docs/line-login/web/integrate-line-login/ ## Using This Strategy First start by adding this gem to your Gemfile: ```ruby gem 'omniauth-line-messenger' ``` Next, tell OmniAuth about this provider. For a Rails app, your `config/initializers/omniauth.rb` file should look like this: ```ruby # PROFILE permission required!! Rails.application.config.middleware.use OmniAuth::Builder do provider :line, "Channel_ID", "Channel_Secret" end ``` ## Authentication Hash An example auth hash available in `request.env['omniauth.auth']`: ```ruby { :provider => "line", :uid => "a123b4....", :info => { :name => "yamada tarou", :image => "http://dl.profile.line.naver.jp/xxxxx", :description => "breakfast now.", :email => "foo@bar.com" }, :credentials => { :token => "a1b2c3d4...", # The OAuth 2.0 access token :secret => "abcdef1234" }, :extra => { # nil } } ``` ## Supported Rubies OmniAuth Line is tested under 2.1.x, 2.2.x.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
omniauth-line-messenger-0.3.2 | README.md |
omniauth-line-messenger-0.3.1 | README.md |
omniauth-line-messenger-0.3.0 | README.md |