omniauth-yahoo_auth 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/omniauth/strategies/yahoo_auth.rb +5 -6
- data/lib/omniauth/yahoo_auth.rb +1 -1
- data/lib/omniauth/yahoo_auth/version.rb +1 -1
- data/omniauth-yahoo_auth.gemspec +5 -1
- metadata +47 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb611f88e196fb2ba3c9248121d7a18b1dc58699
|
4
|
+
data.tar.gz: eaf3939a55d6b52412d351f760d1dbedbb8fdd8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '01883fe521693f2c9a0e56739117755c635a2a06e5ae95cad585ad5f29e954604b2a6da648cc1c8bb869f0983d5af48bbbc11a351c1b323a026aaaaf6d500a39'
|
7
|
+
data.tar.gz: 69c42f9531ea42e01cfb37ff09f3c52a7c77bf2234b532b95410ecbf0f9bd8845b78bd41e00dc8fa7bada81f2156d09db7277758ef1cead91b5dd4d96bfeebce
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# OmniAuth Yahoo OAuth2 Strategy
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/omniauth-yahoo_auth.svg)](https://badge.fury.io/rb/omniauth-yahoo_auth)
|
3
|
+
[![Build Status](https://travis-ci.org/creative-karan/omniauth-yahoo_auth.svg?branch=master)](https://travis-ci.org/creative-karan/omniauth-yahoo_auth)
|
2
4
|
|
3
5
|
Yahoo OAuth2 Strategy for OmniAuth. <br>
|
4
6
|
Supports OAuth 2.0 client-side flow. Read about it at: https://developer.yahoo.com/oauth2/guide/
|
@@ -5,14 +5,14 @@ module OmniAuth
|
|
5
5
|
module Strategies
|
6
6
|
# Main class for Yahoo Auth Startegy
|
7
7
|
class YahooAuth < OmniAuth::Strategies::OAuth2
|
8
|
-
SOCIAL_API_URL =
|
8
|
+
SOCIAL_API_URL = 'https://social.yahooapis.com/v1/user/'
|
9
9
|
|
10
|
-
option :name,
|
10
|
+
option :name, 'yahoo_auth'
|
11
11
|
|
12
12
|
option :client_options, {
|
13
|
-
site:
|
14
|
-
authorize_url:
|
15
|
-
token_url:
|
13
|
+
site: 'https://api.login.yahoo.com',
|
14
|
+
authorize_url: 'https://api.login.yahoo.com/oauth2/request_auth',
|
15
|
+
token_url: 'https://api.login.yahoo.com/oauth2/get_token'
|
16
16
|
}
|
17
17
|
|
18
18
|
uid { access_token.params['xoauth_yahoo_guid'] }
|
@@ -79,7 +79,6 @@ module OmniAuth
|
|
79
79
|
end
|
80
80
|
|
81
81
|
def get_user_image
|
82
|
-
debugger
|
83
82
|
image_size = options[:image_size]
|
84
83
|
if image_size
|
85
84
|
image_url = "#{SOCIAL_API_URL}#{uid}/profile/image/#{image_size}?format=json"
|
data/lib/omniauth/yahoo_auth.rb
CHANGED
data/omniauth-yahoo_auth.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["karan150394@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = "Yahoo OAuth2 Strategy for OmniAuth."
|
13
|
-
spec.description = "Yahoo OAuth2 Strategy. It lets you sign-in a rails app using yahoo login.
|
13
|
+
spec.description = "Yahoo OAuth2 Strategy. Supports OAuth 2.0 client-side flow. It lets you sign-in a rails app using yahoo login."
|
14
14
|
spec.homepage = "https://github.com/creative-karan/omniauth-yahoo_auth"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
@@ -19,7 +19,11 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
+
spec.add_runtime_dependency 'omniauth', '>= 1.1.1'
|
23
|
+
spec.add_runtime_dependency 'omniauth-oauth2', '>= 1.5'
|
24
|
+
|
22
25
|
spec.add_development_dependency "bundler", "~> 1.11"
|
23
26
|
spec.add_development_dependency "rake", "~> 10.0"
|
24
27
|
spec.add_development_dependency "rspec", "~> 3.0"
|
28
|
+
spec.add_development_dependency 'byebug'
|
25
29
|
end
|
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-yahoo_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karan Pathak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: omniauth
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.1.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.1.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: omniauth-oauth2
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.5'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.5'
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: bundler
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,8 +80,22 @@ dependencies:
|
|
52
80
|
- - "~>"
|
53
81
|
- !ruby/object:Gem::Version
|
54
82
|
version: '3.0'
|
55
|
-
|
56
|
-
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: byebug
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: Yahoo OAuth2 Strategy. Supports OAuth 2.0 client-side flow. It lets you
|
98
|
+
sign-in a rails app using yahoo login.
|
57
99
|
email:
|
58
100
|
- karan150394@gmail.com
|
59
101
|
executables: []
|
@@ -94,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
136
|
version: '0'
|
95
137
|
requirements: []
|
96
138
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.
|
139
|
+
rubygems_version: 2.5.2
|
98
140
|
signing_key:
|
99
141
|
specification_version: 4
|
100
142
|
summary: Yahoo OAuth2 Strategy for OmniAuth.
|