omniauth-facebook 4.0.0.rc1 → 4.0.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/.travis.yml +1 -0
- data/CHANGELOG.md +2 -2
- data/README.md +8 -7
- data/lib/omniauth/facebook/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ab5849447e8b93ec83749b3b565b236fc40e3a7
|
|
4
|
+
data.tar.gz: 3eb9ca95bb01b2134d9e62321f702b088670c123
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f81a6ec2294880f6a1db069c80621b3615950f1c6bfdfe3541bc9dccc640ea6d26a63a3ae376cf51fb08ffe0b033b81887720a025ad7363ca1568c528d91c856
|
|
7
|
+
data.tar.gz: e0d8e73d8a087fd2d5909b1694ed1c146a78c8c15bf101cdca3038eb6d5c99673ab39532168523d5e26d1aa09482cbc2dd3f814be26210b7674757385564b50c
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
## 4.0.0 (
|
|
1
|
+
## 4.0.0 (2016-07-26)
|
|
2
2
|
|
|
3
3
|
Changes:
|
|
4
4
|
|
|
5
5
|
- drop support for Ruby < 1.9.3 (@mkdynamic)
|
|
6
6
|
- switch to versioned FB APIs, currently using v2.6 (#245, @printercu, @mkdynamic)
|
|
7
7
|
- remove deprecated :nickname field from README example (#223, @abelorian)
|
|
8
|
-
- add Ruby 2.2 to CI (#225, @tricknotes, @mkdynamic)
|
|
8
|
+
- add Ruby 2.2 + 2.3.0 to CI (#225, @tricknotes, @mkdynamic, @anoraak)
|
|
9
9
|
- update example app (@mkynamic)
|
|
10
10
|
|
|
11
11
|
## 3.0.0 (2015-10-26)
|
data/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Facebook OAuth2 Strategy for OmniAuth.
|
|
6
6
|
|
|
7
|
-
Supports
|
|
7
|
+
Supports OAuth 2.0 server-side and client-side flows. Read the Facebook docs for more details: http://developers.facebook.com/docs/authentication
|
|
8
8
|
|
|
9
9
|
## Installing
|
|
10
10
|
|
|
@@ -49,21 +49,21 @@ For example, to request `email`, `user_birthday` and `read_stream` permissions a
|
|
|
49
49
|
|
|
50
50
|
```ruby
|
|
51
51
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
|
52
|
-
provider :facebook, ENV['
|
|
53
|
-
|
|
52
|
+
provider :facebook, ENV['APP_ID'], ENV['APP_SECRET'],
|
|
53
|
+
scope: 'email,user_birthday,read_stream', display: 'popup'
|
|
54
54
|
end
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
### API Version
|
|
58
58
|
|
|
59
|
-
OmniAuth Facebook uses versioned API endpoints by default (current v2.6). You can configure a different version via `client_options` hash passed to `provider
|
|
59
|
+
OmniAuth Facebook uses versioned API endpoints by default (current v2.6). You can configure a different version via `client_options` hash passed to `provider`, specifically you should change the version in the `site` and `authorize_url` parameters. For example, to change to v3.0 (assuming that exists):
|
|
60
60
|
|
|
61
61
|
```ruby
|
|
62
62
|
use OmniAuth::Builder do
|
|
63
63
|
provider :facebook, ENV['APP_ID'], ENV['APP_SECRET'],
|
|
64
64
|
client_options: {
|
|
65
|
-
site: 'https://graph.facebook.com/
|
|
66
|
-
authorize_url: "https://www.facebook.com/
|
|
65
|
+
site: 'https://graph.facebook.com/v3.0',
|
|
66
|
+
authorize_url: "https://www.facebook.com/v3.0/dialog/oauth"
|
|
67
67
|
}
|
|
68
68
|
end
|
|
69
69
|
```
|
|
@@ -109,7 +109,8 @@ Here's an example *Auth Hash* available in `request.env['omniauth.auth']`:
|
|
|
109
109
|
timezone: -8,
|
|
110
110
|
locale: 'en_US',
|
|
111
111
|
verified: true,
|
|
112
|
-
updated_time: '2011-11-11T06:21:03+0000'
|
|
112
|
+
updated_time: '2011-11-11T06:21:03+0000',
|
|
113
|
+
# ...
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-facebook
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.0
|
|
4
|
+
version: 4.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mark Dodwell
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-
|
|
12
|
+
date: 2016-07-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: omniauth-oauth2
|
|
@@ -112,9 +112,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
112
112
|
version: '0'
|
|
113
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
|
115
|
-
- - "
|
|
115
|
+
- - ">="
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version:
|
|
117
|
+
version: '0'
|
|
118
118
|
requirements: []
|
|
119
119
|
rubyforge_project:
|
|
120
120
|
rubygems_version: 2.4.5.1
|