Sha256: d4ce40570f0826602c789871e8a66398c37837277919bf51b6189035d02d77d6
Contents?: true
Size: 660 Bytes
Versions: 1
Compression:
Stored size: 660 Bytes
Contents
require 'omniauth-oauth2' module OmniAuth module Strategies class Yokitup < OmniAuth::Strategies::OAuth2 option :name, 'yokitup' option :client_options, { site: 'https://id.yokitup.com' } uid { raw_info['id'] } info do { email: raw_info['email'], name: "#{raw_info['first_name']} #{raw_info['last_name']}", first_name: raw_info['first_name'], last_name: raw_info['last_name'], time_zone: raw_info['time_zone'], locale: raw_info['locale'] } end extra do { raw_info: raw_info } end def raw_info @raw_info ||= access_token.get('/api/me.json').parsed end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-yokitup-oauth2-1.0.1 | lib/omniauth/strategies/yokitup.rb |