omniauth-myvr 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/strategies/myvr.rb +0 -53
- data/lib/omniauth_myvr.rb +1 -7
- data/omniauth-myvr.gemspec +3 -3
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2a85e3496cf999685f01d64a6d2c28a27e11b39
|
4
|
+
data.tar.gz: a09d53b5b612186ac35751680c39845c33da561f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47101f995651a9121ef9fcf07d647e4164536e9ad03eeefefb7af88239b7f1c9817def3d2fbd17df00eac2fb971b917dbf89cf35c835679976ed75703d66b5ff
|
7
|
+
data.tar.gz: 120f0f56e085a231cf56312d0fa031180e81f5014cb35ae72ae7acf31d8f799b96b876952edabee0caa9c1dad923a5c2d82e9accd26e07e7680f8e48b6ba0c0b
|
@@ -2,8 +2,6 @@ require 'multi_json'
|
|
2
2
|
require 'jwt'
|
3
3
|
require 'omniauth/strategies/oauth2'
|
4
4
|
require 'uri'
|
5
|
-
require 'httplog'
|
6
|
-
|
7
5
|
|
8
6
|
module OmniAuth
|
9
7
|
module Strategies
|
@@ -29,57 +27,6 @@ module OmniAuth
|
|
29
27
|
|
30
28
|
option :name, 'myvr'
|
31
29
|
option :authorize_params, {grant_type: 'authorization_code'}
|
32
|
-
# uid { raw_info['sub'] || verified_email }
|
33
|
-
#
|
34
|
-
# info do
|
35
|
-
# prune!({
|
36
|
-
# :name => raw_info['name'],
|
37
|
-
# :email => verified_email,
|
38
|
-
# :first_name => raw_info['given_name'],
|
39
|
-
# :last_name => raw_info['family_name'],
|
40
|
-
# :image => image_url,
|
41
|
-
# :urls => {
|
42
|
-
# 'Google' => raw_info['profile']
|
43
|
-
# }
|
44
|
-
# })
|
45
|
-
# end
|
46
|
-
#
|
47
|
-
# extra do
|
48
|
-
# hash = {}
|
49
|
-
# hash[:id_token] = access_token['id_token']
|
50
|
-
# if !options[:skip_jwt] && !access_token['id_token'].nil?
|
51
|
-
# hash[:id_info] = JWT.decode(
|
52
|
-
# access_token['id_token'], nil, false, {
|
53
|
-
# :verify_iss => true,
|
54
|
-
# 'iss' => 'accounts.google.com',
|
55
|
-
# :verify_aud => true,
|
56
|
-
# 'aud' => options.client_id,
|
57
|
-
# :verify_sub => false,
|
58
|
-
# :verify_expiration => true,
|
59
|
-
# :verify_not_before => true,
|
60
|
-
# :verify_iat => true,
|
61
|
-
# :verify_jti => false,
|
62
|
-
# :leeway => options[:jwt_leeway]
|
63
|
-
# }).first
|
64
|
-
# end
|
65
|
-
# hash[:raw_info] = raw_info unless skip_info?
|
66
|
-
# hash[:raw_friend_info] = raw_friend_info(raw_info['sub']) unless skip_info? || options[:skip_friends]
|
67
|
-
# hash[:raw_image_info] = raw_image_info(raw_info['sub']) unless skip_info? || options[:skip_image_info]
|
68
|
-
# prune! hash
|
69
|
-
# end
|
70
|
-
#
|
71
|
-
# def raw_info
|
72
|
-
# @raw_info ||= access_token.get('https://www.googleapis.com/plus/v1/people/me/openIdConnect').parsed
|
73
|
-
# end
|
74
|
-
#
|
75
|
-
# def raw_friend_info(id)
|
76
|
-
# @raw_friend_info ||= access_token.get("https://www.googleapis.com/plus/v1/people/#{id}/people/visible").parsed
|
77
|
-
# end
|
78
|
-
#
|
79
|
-
# def raw_image_info(id)
|
80
|
-
# @raw_image_info ||= access_token.get("https://www.googleapis.com/plus/v1/people/#{id}?fields=image").parsed
|
81
|
-
# end
|
82
|
-
|
83
30
|
|
84
31
|
def build_access_token
|
85
32
|
token_params = {
|
data/lib/omniauth_myvr.rb
CHANGED
data/omniauth-myvr.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "omniauth-myvr"
|
6
|
-
s.version = "0.1.
|
6
|
+
s.version = "0.1.3"
|
7
7
|
s.authors = ["CJ Avilla"]
|
8
8
|
s.email = ["cjavilla@gmail.com"]
|
9
9
|
s.homepage = "https://github.com/w1zeman1p/omniauth-myvr"
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
|
19
|
-
s.add_dependency 'omniauth', '>= 1.
|
20
|
-
s.add_dependency 'omniauth-oauth2', '>= 1.
|
19
|
+
s.add_dependency 'omniauth', '>= 1.6.1'
|
20
|
+
s.add_dependency 'omniauth-oauth2', '>= 1.4.0'
|
21
21
|
s.add_development_dependency 'bundler', '~> 1.0'
|
22
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-myvr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CJ Avilla
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.6.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.6.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: omniauth-oauth2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.4.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.4.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
90
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.
|
91
|
+
rubygems_version: 2.6.8
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: OmniAuth strategy for MyVR
|