Socket
Book a DemoInstallSign in
Socket

omniauth-typetalk

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

omniauth-typetalk

0.1.4
bundlerRubygems
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 24 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.