omniauth-typetalk 0.1.2 → 0.1.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 +5 -5
- data/lib/omniauth-typetalk/version.rb +1 -1
- data/lib/omniauth/strategies/typetalk.rb +12 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: bc1947f01e44f45cd0fc5a7eb2b962105fa85ba4
|
|
4
|
+
data.tar.gz: d69f14161a67c08259011b7135f3b99196ac79b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ccd64dbaf6ec496ed824bcfac02bdb6b0439ba5066155cab1b71bc37407305109ddec8c44cb1906aa05bcc2c598cbbba7c34e1dadb564df954105410208a191
|
|
7
|
+
data.tar.gz: 17cc2548339e09b17f3731103ac78547a241fdbe1c8aa12980c88ed9fc207d7c646eb10cb81d27836737e13b842df386b2b5cd2912d6de08cf7af0db8aeb754b
|
|
@@ -4,9 +4,9 @@ module OmniAuth
|
|
|
4
4
|
module Strategies
|
|
5
5
|
class Typetalk < OmniAuth::Strategies::OAuth2
|
|
6
6
|
option :client_options, {
|
|
7
|
-
:site
|
|
7
|
+
:site => 'https://typetalk.com',
|
|
8
8
|
:authorize_url => 'https://typetalk.com/oauth2/authorize',
|
|
9
|
-
:token_url
|
|
9
|
+
:token_url => 'https://typetalk.com/oauth2/access_token',
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
def request_phase
|
|
@@ -25,7 +25,16 @@ module OmniAuth
|
|
|
25
25
|
|
|
26
26
|
info do
|
|
27
27
|
{
|
|
28
|
-
'
|
|
28
|
+
'id' => raw_info['account']['id'],
|
|
29
|
+
'name' => raw_info['account']['name'],
|
|
30
|
+
'fullName' => raw_info['account']['fullName'],
|
|
31
|
+
'suggestion' => raw_info['account']['suggestion'],
|
|
32
|
+
'imageUrl' => raw_info['account']['imageUrl'],
|
|
33
|
+
'isBot' => raw_info['account']['isBot'],
|
|
34
|
+
'lang' => raw_info['account']['lang'],
|
|
35
|
+
'timezoneId' => raw_info['account']['timezoneId'],
|
|
36
|
+
'createdAt' => raw_info['account']['createdAt'],
|
|
37
|
+
'updatedAt' => raw_info['account']['updatedAt'],
|
|
29
38
|
}
|
|
30
39
|
end
|
|
31
40
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-typetalk
|
|
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
|
- Issei Horie
|
|
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
151
151
|
version: '0'
|
|
152
152
|
requirements: []
|
|
153
153
|
rubyforge_project:
|
|
154
|
-
rubygems_version: 2.
|
|
154
|
+
rubygems_version: 2.5.2.3
|
|
155
155
|
signing_key:
|
|
156
156
|
specification_version: 4
|
|
157
157
|
summary: OmniAuth strategy for Typetalk.
|