No commit activity in last 3 years
No release in over 3 years
OmniAuth strategy for Typetalk, chat app by Nulab
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
= 0.6.3
~> 10.0
= 0.16.1
= 3.5.1

Runtime

~> 1.5
>= 1.4.0, < 2.0
 Project Readme

omniauth-typetalk

Build Status Gem Version

Typetalk OAuth2 Strategy for OmniAuth

Basic Usage

use OmniAuth::Builder do
  provider :typetalk, ENV['TYPETALK_KEY'], ENV['TYPETALK_SECRET']
end 

Sinatra Example

require 'sinatra'
require 'omniauth'
require 'omniauth-typetalk'

use Rack::Session::Cookie
use OmniAuth::Builder do
  provider :typetalk, ENV['TYPETALK_KEY'], ENV['TYPETALK_SECRET'], scope: "my topic.read"
end

get '/' do
  <<-HTML
  <a href='/auth/typetalk'>Sign in with Typetalk</a>
  HTML
end

get '/auth/:name/callback' do
  auth = request.env['omniauth.auth']

  <<-HTML
  <p>[Profile]</p>
  <p>id: #{auth.info.id}</p>
  <p>name: #{auth.info.name}</p>
  <p>fullName: #{auth.info.fullName}</p>
  <p>suggestion: #{auth.info.suggestion}</p>
  <p>imageUrl: #{auth.info.imageUrl}</p>
  <p>createdAt: #{auth.info.createdAt}</p>
  HTML
end