omniauth-naver 0.0.2 → 0.1.0
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/README.md +37 -27
- data/lib/omniauth-naver/version.rb +1 -1
- data/lib/omniauth/strategies/naver.rb +1 -2
- 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: a7baf16cf3a64b6d0e67364beeeb9a036b32b546
|
|
4
|
+
data.tar.gz: 5e2b890400d21e09ee014f4a900e3c0c6343f85a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3e4c48729781be41d723340e80b55cabeda96f004b1aa406834f334fe2bac0faf356f9814ebff283bf8cfcfa0f259964ee5f4323d638b2dbe37974f19db6785
|
|
7
|
+
data.tar.gz: 649427664bfa479c40740a0bbf7e954ff3829a5a669db9efe692651133f4aa0feba233e6ea3b1873fbf79e1d2c365d10f9e71338fa0fc0e2a0860443faee9044
|
data/README.md
CHANGED
|
@@ -34,37 +34,47 @@ Here's an example *Auth Hash* available in `request.env['omniauth.auth']`:
|
|
|
34
34
|
|
|
35
35
|
```ruby
|
|
36
36
|
{
|
|
37
|
-
provider
|
|
38
|
-
uid
|
|
39
|
-
info
|
|
40
|
-
name
|
|
41
|
-
email
|
|
42
|
-
gender
|
|
43
|
-
image
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
37
|
+
"provider"=>"naver",
|
|
38
|
+
"uid"=>"86744e27d4bfdb3cddb478293d295cf783ce9ed41f0ad7687bac26e97a1ed1b4",
|
|
39
|
+
"info"=>{
|
|
40
|
+
"name"=>"홍길동",
|
|
41
|
+
"email"=>"foobar@naver.com",
|
|
42
|
+
"gender"=>"male",
|
|
43
|
+
"image"=>"https://phinf.pstatic.net/contactthumb/52/2014/8/4/kimsuerim_1407162661934.jpg"
|
|
44
|
+
},
|
|
45
|
+
"credentials"=>{
|
|
46
|
+
"token"=>"AAAAOaaPwFPh1sKav5f5XBbRNfMmqudjxdGsVJQCJdRXKWmWmxAgXwlk29365tU1S4j3oXjG3HpnGG4w+CoJ+gg5eDA=",
|
|
47
|
+
"refresh_token"=>"kgA4WSgY8h5ZWYFgGxpd0jjGcPTGqf1vUdGq2nj7rfupHMUxUa9adXJhbddMzadB1X9djhfCbBisZGMUsisCp4XuPMRjiiz4yTSG93y3ziiQerTdOUJKuW6VVR5FQLHxj87y",
|
|
48
|
+
"expires_at"=>1455173853,
|
|
49
|
+
"expires"=>true
|
|
50
|
+
},
|
|
51
|
+
"extra"=>{
|
|
52
|
+
"raw_info"=>{
|
|
53
|
+
"data"=>{
|
|
54
|
+
"result"=>{
|
|
55
|
+
"resultcode"=>"00",
|
|
56
|
+
"message"=>"success"
|
|
57
|
+
},
|
|
58
|
+
"response"=>{
|
|
59
|
+
"email"=>"foobar@naver.com",
|
|
60
|
+
"nickname"=>"foobar",
|
|
61
|
+
"enc_id"=>"86744e27d4bfdb3cddb478293d295cf783ce9ed41f0ad7687bac26e97a1ed1b4",
|
|
62
|
+
"profile_image"=>"https://phinf.pstatic.net/contactthumb/52/2014/8/4/kimsuerim_1407162661934.jpg?type=s80",
|
|
63
|
+
"age"=>"30-39",
|
|
64
|
+
"gender"=>"M",
|
|
65
|
+
"id"=>"48407261",
|
|
66
|
+
"name"=>"홍길동",
|
|
67
|
+
"birthday"=>"01-08"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
63
73
|
```
|
|
64
74
|
|
|
65
75
|
## Contributing
|
|
66
76
|
|
|
67
|
-
1. Fork it ( https://github.com/
|
|
77
|
+
1. Fork it ( https://github.com/kimsuelim/omniauth-naver/fork )
|
|
68
78
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
69
79
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
70
80
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
@@ -15,7 +15,7 @@ module OmniAuth
|
|
|
15
15
|
|
|
16
16
|
info do
|
|
17
17
|
{
|
|
18
|
-
'name' => raw_properties['
|
|
18
|
+
'name' => raw_properties['name'],
|
|
19
19
|
'email' => raw_properties['email'],
|
|
20
20
|
'gender' => gender,
|
|
21
21
|
'image' => image,
|
|
@@ -26,7 +26,6 @@ module OmniAuth
|
|
|
26
26
|
{:raw_info => raw_info}
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
|
|
30
29
|
private
|
|
31
30
|
|
|
32
31
|
def gender
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-naver
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Surim Kim
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth-oauth2
|