omniauth-tbs 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/omniauth/tbs.rb +3 -3
- data/lib/omniauth/tbs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e82aada632bcf8afce87623da663cfa82d38a75e
|
4
|
+
data.tar.gz: 2ab3d24120e777c01f5cabc0a2713a7fd2c3abb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72e48d6a40286b73fc081c0f01718f956d977781a26621df4cdce6015f23e1782504561d14ea9f9d97e451b48130214a6e1e506e578d820405f74f111b451f75
|
7
|
+
data.tar.gz: 95641f4ca9c55030e1fbe894da14ad558d70d87e9a47929768a9975a8958e1c21af4bc5152ff40d4546cc14413ecc29425c0b4229794d676799ab78bc1a50ba2
|
data/lib/omniauth/tbs.rb
CHANGED
@@ -2,11 +2,11 @@ require "omniauth/tbs/version"
|
|
2
2
|
|
3
3
|
module OmniAuth
|
4
4
|
module Strategies
|
5
|
-
class
|
5
|
+
class Tbs < OmniAuth::Strategies::OAuth2
|
6
6
|
# change the class name and the :name option to match your application name
|
7
7
|
option :name, :tbs
|
8
8
|
option :client_options, {
|
9
|
-
:site => "http://localhost:
|
9
|
+
:site => "http://localhost:3000", :authorize_url => "/oauth/authorize"
|
10
10
|
}
|
11
11
|
uid { raw_info["id"] }
|
12
12
|
info do
|
@@ -16,7 +16,7 @@ module OmniAuth
|
|
16
16
|
}
|
17
17
|
end
|
18
18
|
def raw_info
|
19
|
-
@raw_info ||= access_token.get('/api/v1/show.json').parsed
|
19
|
+
@raw_info ||= access_token.get('/api/v1/users/show.json').parsed
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
data/lib/omniauth/tbs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-tbs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erwin Schens
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|