Sha256: eb4ff2a5efb5422d7e9a806a29be4a488d12fa1cc2fab0b315230e60246433a0
Contents?: true
Size: 657 Bytes
Versions: 1
Compression:
Stored size: 657 Bytes
Contents
module OmniAuth module Strategies class Cronofy < CronofyBase option :name, "cronofy" uid { raw_info['account_id'] } info do { :email => raw_info['email'], :name => raw_info['name'] } end extra do { 'raw_info' => raw_info, 'linking_profile' => access_token['linking_profile'], } end def callback_url options[:redirect_uri] || (full_host + script_name + callback_path) end def raw_info @raw_info ||= access_token.get("#{client_options[:api_url]}/v1/account").parsed['account'] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-cronofy-0.9.0 | lib/omniauth/strategies/cronofy.rb |