omniauth-google-oauth2 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +11 -1
- data/lib/omniauth/google_oauth2/version.rb +1 -1
- data/omniauth-google-oauth2.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0643ee95f8a2b03be985a1a23c4d714bcb260f24
|
4
|
+
data.tar.gz: 9a4aa200d91bde859d5a65acbea094f388028903
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2938e8c5d8be4d46e0f46bd709417829a249f586d26b1ef63bed5612b0c4fc70d2bbcec9ee70b1249b4f9ea4dd5ca3b06901e2b89478d94daa551bc77c7d20d6
|
7
|
+
data.tar.gz: f7e105d0d91ca5e0aa7404ecf73320204941874bf9532e0d549897b835633cc6f097b4f061174c8f1a8a94a37d8821fc5ce3d6a1a76eaf590e772596d77f5b18
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
# Changelog
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
## 0.2.9 - 2015-10-29
|
5
|
+
|
6
|
+
### Added
|
7
|
+
- Nothing.
|
8
|
+
|
9
|
+
### Deprecated
|
10
|
+
- Nothing.
|
11
|
+
|
12
|
+
### Removed
|
13
|
+
- Nothing.
|
14
|
+
|
15
|
+
### Fixed
|
16
|
+
- Issue with omniauth-oauth2 where redirect_uri was handled improperly. We now lock the dependency to ~> 1.3.1
|
17
|
+
|
4
18
|
## 0.2.8 - 2015-10-01
|
5
19
|
|
6
20
|
### Added
|
data/README.md
CHANGED
@@ -71,6 +71,8 @@ You can configure several options, which you pass in to the `provider` method vi
|
|
71
71
|
|
72
72
|
* `hd`: (Optional) Limit sign-in to a particular Google Apps hosted domain. More information at: https://developers.google.com/accounts/docs/OpenIDConnect#hd-param
|
73
73
|
|
74
|
+
* `skip_jwt`: Skip JWT processing. This is for users who are seeing JWT decoding errors with the `iat` field.
|
75
|
+
|
74
76
|
* `login_hint`: When your app knows which user it is trying to authenticate, it can provide this parameter as a hint to the authentication server. Passing this hint suppresses the account chooser and either pre-fill the email box on the sign-in form, or select the proper session (if the user is using multiple sign-in), which can help you avoid problems that occur if your app logs in the wrong user account. The value can be either an email address or the sub string, which is equivalent to the user's Google+ ID.
|
75
77
|
|
76
78
|
* `include_granted_scopes`: If this is provided with the value true, and the authorization request is granted, the authorization will include any previous authorizations granted to this user/application combination for other scopes. See Google's [Incremental Autorization](https://developers.google.com/accounts/docs/OAuth2WebServer#incrementalAuth) for additional details.
|
@@ -272,8 +274,16 @@ class ApplicationController < ActionController::Base
|
|
272
274
|
...
|
273
275
|
```
|
274
276
|
|
275
|
-
and add ```skip_before_filter :verify_authenticity_token``` in your omniauth callback controller because it is already verified by omniauth state. And then you
|
277
|
+
and add ```skip_before_filter :verify_authenticity_token``` in your omniauth callback controller because it is already verified by omniauth state. And then you need to add ```:provider_ignores_state => true``` in your omniauth initializer.
|
278
|
+
|
279
|
+
## Fixing Protocol Mismatch for `redirect_uri` in Rails
|
280
|
+
|
281
|
+
Just set the `full_host` in OmniAuth based on the Rails.env.
|
276
282
|
|
283
|
+
```
|
284
|
+
# config/initialisers/omniauth.rb
|
285
|
+
OmniAuth.config.full_host = Rails.env.production? ? 'https://domain.com' : 'http://localhost:3000'
|
286
|
+
```
|
277
287
|
|
278
288
|
## Build Status
|
279
289
|
[![Build Status](https://travis-ci.org/zquestz/omniauth-google-oauth2.png)](https://travis-ci.org/zquestz/omniauth-google-oauth2)
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
|
17
17
|
gem.add_runtime_dependency 'omniauth', '>= 1.1.1'
|
18
|
-
gem.add_runtime_dependency 'omniauth-oauth2', '
|
18
|
+
gem.add_runtime_dependency 'omniauth-oauth2', '~> 1.3.1'
|
19
19
|
gem.add_runtime_dependency 'jwt', '~> 1.0'
|
20
20
|
gem.add_runtime_dependency 'multi_json', '~> 1.3'
|
21
21
|
gem.add_runtime_dependency 'addressable', '~> 2.3'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-google-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Ellithorpe
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-10-
|
12
|
+
date: 2015-10-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|
@@ -29,16 +29,16 @@ dependencies:
|
|
29
29
|
name: omniauth-oauth2
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 1.
|
34
|
+
version: 1.3.1
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 1.
|
41
|
+
version: 1.3.1
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: jwt
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|