omniauth-auth0 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c655254b4718ab8def4aaa2dd3420558d1931ca4
4
- data.tar.gz: 6da03303cf67444bb641db676ddd64d7919a2335
3
+ metadata.gz: 3fda465973de6318c4fbc968ab3ebc1e18f204cd
4
+ data.tar.gz: a8700d0a348869c2825fd5d70075d9197c418cf6
5
5
  SHA512:
6
- metadata.gz: ccc1e93272770cdfaa90b07ecb356ad29b6a2820ba01bdaa461e5d08f5fa9d53419ece7a34a0e842e0aa1996f2676a9993bfba596253047a854ee5f6a18fc6e9
7
- data.tar.gz: 99a34d0709e7fde5a9af8757fc0c9db7f95acef140418d2ec458bb7dbefd4f589988538cff94eefcb4a8982eb1a66bdae9913af7b3aab307dc386efde46f354e
6
+ metadata.gz: 31a498cbd34506bb4bcee52e58e2b9ecce0bd1a73432f0714ca43842b02bc996c2002b0d72e287f9155cc51d52a62410b13041ad9716e67066737c545ce2b6ef
7
+ data.tar.gz: 374b6d38dd1550c0f347f515f60db64cab9e949533cfca6c6efcc909d0403bce2fa40b4ab42992144f3295117345cca01424d9daf26bd336c2f81ee20a02d17e
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Auth0 Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -20,7 +20,7 @@ Then `bundle install`.
20
20
  Rails.application.config.middleware.use OmniAuth::Builder do
21
21
  provider :auth0, ENV['CLIENT_ID'], ENV['CLIENT_SECRET'], ENV['YOUR_NAMESPACE']
22
22
  end
23
- ```ruby
23
+ ```
24
24
 
25
25
  ### Sinatra
26
26
 
@@ -100,6 +100,6 @@ You can change to use In-Memory store for development as follows:
100
100
 
101
101
  For more information about [auth0](http://auth0.com) contact our [documentation page](http://docs.auth0.com/).
102
102
 
103
- ## License
103
+ ## Issue Reporting
104
104
 
105
- MIT 2013 - AUTH0 INC.
105
+ If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
@@ -1,3 +1,3 @@
1
1
  module Auth0
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -11,12 +11,14 @@ module OmniAuth
11
11
  option :name, "auth0"
12
12
  option :namespace, nil
13
13
  option :provider_ignores_state, true
14
+ option :connection
14
15
 
15
- args [:client_id, :client_secret, :namespace, :provider_ignores_state]
16
+ args [:client_id, :client_secret, :namespace, :provider_ignores_state, :connection]
16
17
 
17
18
  def initialize(app, *args, &block)
18
19
  super
19
20
  @options.provider_ignores_state = args[3] unless args[3].nil?
21
+ @options.connection = args[4] unless args[4].nil?
20
22
 
21
23
  @options.client_options.site = "https://#{options[:namespace]}"
22
24
  @options.client_options.authorize_url = "https://#{options[:namespace]}/authorize"
@@ -29,6 +31,9 @@ module OmniAuth
29
31
  PASSTHROUGHS.each do |p|
30
32
  param[p.to_sym] = request.params[p] if request.params[p]
31
33
  end
34
+ if @options.connection
35
+ param[:connection] = @options.connection
36
+ end
32
37
  end
33
38
  end
34
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Auth0
@@ -10,76 +10,76 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-07-15 00:00:00.000000000 Z
13
+ date: 2014-12-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: omniauth-oauth2
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ~>
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
21
  version: '1.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ~>
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
28
  version: '1.1'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rspec
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ~>
33
+ - - "~>"
34
34
  - !ruby/object:Gem::Version
35
35
  version: '2.7'
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ~>
40
+ - - "~>"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '2.7'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: rack-test
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - '>='
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - '>='
54
+ - - ">="
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: simplecov
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - '>='
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: webmock
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - '>='
75
+ - - ">="
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - '>='
82
+ - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  description: Omniauth OAuth2 strategy for the Auth0 platform.
@@ -89,8 +89,9 @@ executables: []
89
89
  extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
- - .gitignore
92
+ - ".gitignore"
93
93
  - Gemfile
94
+ - LICENSE.md
94
95
  - README.md
95
96
  - Rakefile
96
97
  - lib/auth0/version.rb
@@ -109,20 +110,21 @@ require_paths:
109
110
  - lib
110
111
  required_ruby_version: !ruby/object:Gem::Requirement
111
112
  requirements:
112
- - - '>='
113
+ - - ">="
113
114
  - !ruby/object:Gem::Version
114
115
  version: '0'
115
116
  required_rubygems_version: !ruby/object:Gem::Requirement
116
117
  requirements:
117
- - - '>='
118
+ - - ">="
118
119
  - !ruby/object:Gem::Version
119
120
  version: '0'
120
121
  requirements: []
121
122
  rubyforge_project: omniauth-auth0
122
- rubygems_version: 2.0.3
123
+ rubygems_version: 2.4.1
123
124
  signing_key:
124
125
  specification_version: 4
125
126
  summary: Omniauth OAuth2 strategy for the Auth0 platform.
126
127
  test_files:
127
128
  - spec/omniauth/strategies/auth0_spec.rb
128
129
  - spec/spec_helper.rb
130
+ has_rdoc: