omniauth-spotify 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth-spotify.rb +9 -0
- data/lib/omniauth-spotify/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdf552ae9587eab9fc42d3a29e18839e01fb4bd0
|
4
|
+
data.tar.gz: 8b654a7a9799d359e68992d7bcd1243e3b8f1628
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91fd126d70e10c98765f4ca945bcbe4a03d90b7104757123215367d52ae097ada9ab62808a4b2c1a171d57bbf3bbe7954abd481a2f30a90b3c16fc8b9e4cca92
|
7
|
+
data.tar.gz: 6bc427de60012737366b591719f6c228aed37e6404b8a5d826d6b12d9006dcd6120c4fb54b758a64bc644ea2025cce5b7d0404000e5bfa59feec4aa6ad67d6b6
|
data/lib/omniauth-spotify.rb
CHANGED
@@ -50,6 +50,15 @@ module OmniAuth
|
|
50
50
|
def raw_info
|
51
51
|
@raw_info ||= access_token.get('me').parsed
|
52
52
|
end
|
53
|
+
|
54
|
+
def callback_url
|
55
|
+
if @authorization_code_from_signed_request_in_cookie
|
56
|
+
''
|
57
|
+
else
|
58
|
+
# Fixes regression in omniauth-oauth2 v1.4.0 by https://github.com/intridea/omniauth-oauth2/commit/85fdbe117c2a4400d001a6368cc359d88f40abc7
|
59
|
+
options[:callback_url] || (full_host + script_name + callback_path)
|
60
|
+
end
|
61
|
+
end
|
53
62
|
end
|
54
63
|
end
|
55
64
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-spotify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claudio Poli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|
@@ -26,8 +26,9 @@ dependencies:
|
|
26
26
|
version: '1.1'
|
27
27
|
description: OmniAuth strategy for Spotify
|
28
28
|
email:
|
29
|
-
-
|
30
|
-
|
29
|
+
- 'claudio@icorete.ch
|
30
|
+
|
31
|
+
'
|
31
32
|
executables: []
|
32
33
|
extensions: []
|
33
34
|
extra_rdoc_files: []
|
@@ -59,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
60
|
version: '0'
|
60
61
|
requirements: []
|
61
62
|
rubyforge_project:
|
62
|
-
rubygems_version: 2.
|
63
|
+
rubygems_version: 2.5.1
|
63
64
|
signing_key:
|
64
65
|
specification_version: 4
|
65
66
|
summary: OmniAuth strategy for Spotify
|