omniauth_openid_connect 0.1 → 0.2.4

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
- SHA1:
3
- metadata.gz: acc382de3a9187fc1fc72053e311d7d82f579351
4
- data.tar.gz: 38f48f09a1c3886b5a5e64da87614f76ce7d157b
2
+ SHA256:
3
+ metadata.gz: 9379f2ad95525430e02d022ece044a331e36d7a5ea093d48349829305f16b445
4
+ data.tar.gz: 98959c5836425cae327007dc76fefbc09db5693d71488282ec5b08f1199da306
5
5
  SHA512:
6
- metadata.gz: 300022e2fbe8589c5e3d791e468263015260256e51a34f8da390c30b5ee46c5da22d5556cb4acc7d89f40bbad6b2aae6dbcc916b997ee6aeb8eebd1ad8dd77f2
7
- data.tar.gz: dbc66b01bec8c313449b56f4248925989621eab47790ff541fb338719287014926f208a1b0cf2e22ce53e938c98b8ee622a25eafb7c955d4ce7332ddd4683429
6
+ metadata.gz: 18460b36bc8dfffb027e11baea3da125406cea9749877cf02640e60e7b98a4b813821988d6bcb7e4d41b7cb4a4d20207bf4bd4684d9ee6dd374f49618bda6556
7
+ data.tar.gz: 5b8f9509cdb60e5c2f0234732781dbae04379ab4ccab482b9bd374c4134d7502d9bc27bcfac57be641d4154025d97bde92e7ebd16c5588f8fde55b4f3a65133a
data/.travis.yml CHANGED
@@ -1,9 +1,4 @@
1
- before_install:
2
- - gem update bundler
1
+ language: ruby
3
2
  rvm:
4
- - 1.9.3
5
- - 2.0.0
6
- - 2.1.0
7
- - 2.2.0
8
- - 2.3.0
9
- - rbx
3
+ - 2.4
4
+ - 2.5
data/README.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # OmniAuth::OpenIDConnect
2
2
 
3
- OpenID Connect strategy for OmniAuth
4
- [![Gem Version](https://badge.fury.io/rb/omniauth-openid-connect.png)](http://badge.fury.io/rb/omniauth-openid-connect)
5
- [![Build Status](https://travis-ci.org/jjbohn/omniauth-openid-connect.png?branch=master)](https://travis-ci.org/jjbohn/omniauth-openid-connect)
6
- [![Coverage Status](https://coveralls.io/repos/jjbohn/omniauth-openid-connect/badge.png?branch=master)](https://coveralls.io/r/jjbohn/omniauth-openid-connect?branch=master)
7
- [![Code Climate](https://codeclimate.com/github/jjbohn/omniauth-openid-connect.png)](https://codeclimate.com/github/jjbohn/omniauth-openid-connect)
3
+ Originally was [omniauth-openid-connect](https://github.com/jjbohn/omniauth-openid-connect)
4
+
5
+ I've forked this repository and launch as separate gem because maintaining of original was dropped.
6
+
7
+ [![Build Status](https://travis-ci.org/m0n9oose/omniauth_openid_connect.png?branch=master)](https://travis-ci.org/m0n9oose/omniauth_openid_connect)
8
8
 
9
9
  ## Installation
10
10
 
11
11
  Add this line to your application's Gemfile:
12
12
 
13
- gem 'omniauth-openid-connect'
13
+ gem 'omniauth_openid_connect'
14
14
 
15
15
  And then execute:
16
16
 
@@ -18,7 +18,7 @@ And then execute:
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install omniauth-openid-connect
21
+ $ gem install omniauth_openid_connect
22
22
 
23
23
  ## Usage
24
24
 
@@ -64,7 +64,7 @@ For the full low down on OpenID Connect, please check out
64
64
 
65
65
  ## Contributing
66
66
 
67
- 1. Fork it ( http://github.com/jjbohn/omniauth-openid-connect/fork )
67
+ 1. Fork it ( http://github.com/m0n9oose/omniauth-openid-connect/fork )
68
68
  2. Create your feature branch (`git checkout -b my-new-feature`)
69
69
  3. Commit your changes (`git commit -am 'Add some feature'`)
70
70
  4. Push to the branch (`git push origin my-new-feature`)
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module OpenIDConnect
3
- VERSION = '0.1'
3
+ VERSION = '0.2.4'
4
4
  end
5
5
  end
@@ -121,6 +121,8 @@ module OmniAuth
121
121
  response_type: options.response_type,
122
122
  scope: options.scope,
123
123
  state: new_state,
124
+ login_hint: options.login_hint,
125
+ prompt: options.prompt,
124
126
  nonce: (new_nonce if options.send_nonce),
125
127
  hd: options.hd,
126
128
  }
@@ -199,15 +201,15 @@ module OmniAuth
199
201
 
200
202
  def key_or_secret
201
203
  case options.client_signing_alg
202
- when :HS256, :HS384, :HS512
203
- return client_options.secret
204
- when :RS256, :RS384, :RS512
205
- if options.client_jwk_signing_key
206
- return parse_jwk_key(options.client_jwk_signing_key)
207
- elsif options.client_x509_signing_key
208
- return parse_x509_key(options.client_x509_signing_key)
209
- end
210
- else
204
+ when :HS256, :HS384, :HS512
205
+ return client_options.secret
206
+ when :RS256, :RS384, :RS512
207
+ if options.client_jwk_signing_key
208
+ return parse_jwk_key(options.client_jwk_signing_key)
209
+ elsif options.client_x509_signing_key
210
+ return parse_x509_key(options.client_x509_signing_key)
211
+ end
212
+ else
211
213
  end
212
214
  end
213
215
 
@@ -6,10 +6,10 @@ require 'omniauth/openid_connect/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'omniauth_openid_connect'
8
8
  spec.version = OmniAuth::OpenIDConnect::VERSION
9
- spec.authors = 'John Bohn'
10
- spec.email = 'jjbohn@gmail.com'
9
+ spec.authors = ['John Bohn', 'Ilya Shcherbinin']
10
+ spec.email = ['jjbohn@gmail.com', 'm0n9oose@gmail.com']
11
11
  spec.summary = 'OpenID Connect Strategy for OmniAuth'
12
- spec.description = 'OpenID Connect Strategy for OmniAuth'
12
+ spec.description = 'OpenID Connect Strategy for OmniAuth.'
13
13
  spec.homepage = 'https://github.com/jjbohn/omniauth-openid-connect'
14
14
  spec.license = 'MIT'
15
15
 
@@ -19,15 +19,15 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_dependency 'omniauth', '~> 1.3'
22
- spec.add_dependency 'openid_connect', '~> 0.12.0'
22
+ spec.add_dependency 'openid_connect', '~> 1.1'
23
23
  spec.add_dependency 'addressable', '~> 2.5'
24
24
  spec.add_development_dependency 'bundler', '~> 1.5'
25
25
  spec.add_development_dependency 'minitest', '~> 5.1'
26
- spec.add_development_dependency 'mocha', '~> 1.2'
26
+ spec.add_development_dependency 'mocha', '~> 1.7'
27
27
  spec.add_development_dependency 'guard', '~> 2.14'
28
28
  spec.add_development_dependency 'guard-minitest', '~> 2.4'
29
29
  spec.add_development_dependency 'guard-bundler', '~> 2.1'
30
- spec.add_development_dependency 'rake', '~> 11.3'
30
+ spec.add_development_dependency 'rake', '~> 12.0'
31
31
  spec.add_development_dependency 'simplecov', '~> 0.12'
32
32
  spec.add_development_dependency 'pry', '~> 0.9'
33
33
  spec.add_development_dependency 'coveralls', '~> 0.8'
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require_relative '../../../test_helper'
2
2
 
3
3
  module OmniAuth
4
4
  module Strategies
data/test/test_helper.rb CHANGED
@@ -1,7 +1,10 @@
1
+ lib = File.expand_path('../../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+
1
4
  require 'simplecov'
2
5
  require 'coveralls'
3
6
  require 'minitest/autorun'
4
- require 'mocha/mini_test'
7
+ require 'mocha/minitest'
5
8
  require 'faker'
6
9
  require 'active_support'
7
10
  require 'omniauth_openid_connect'
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth_openid_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bohn
8
+ - Ilya Shcherbinin
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-12-01 00:00:00.000000000 Z
12
+ date: 2019-01-06 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: omniauth
@@ -30,14 +31,14 @@ dependencies:
30
31
  requirements:
31
32
  - - "~>"
32
33
  - !ruby/object:Gem::Version
33
- version: 0.12.0
34
+ version: '1.1'
34
35
  type: :runtime
35
36
  prerelease: false
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
39
  - - "~>"
39
40
  - !ruby/object:Gem::Version
40
- version: 0.12.0
41
+ version: '1.1'
41
42
  - !ruby/object:Gem::Dependency
42
43
  name: addressable
43
44
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +87,14 @@ dependencies:
86
87
  requirements:
87
88
  - - "~>"
88
89
  - !ruby/object:Gem::Version
89
- version: '1.2'
90
+ version: '1.7'
90
91
  type: :development
91
92
  prerelease: false
92
93
  version_requirements: !ruby/object:Gem::Requirement
93
94
  requirements:
94
95
  - - "~>"
95
96
  - !ruby/object:Gem::Version
96
- version: '1.2'
97
+ version: '1.7'
97
98
  - !ruby/object:Gem::Dependency
98
99
  name: guard
99
100
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +143,14 @@ dependencies:
142
143
  requirements:
143
144
  - - "~>"
144
145
  - !ruby/object:Gem::Version
145
- version: '11.3'
146
+ version: '12.0'
146
147
  type: :development
147
148
  prerelease: false
148
149
  version_requirements: !ruby/object:Gem::Requirement
149
150
  requirements:
150
151
  - - "~>"
151
152
  - !ruby/object:Gem::Version
152
- version: '11.3'
153
+ version: '12.0'
153
154
  - !ruby/object:Gem::Dependency
154
155
  name: simplecov
155
156
  requirement: !ruby/object:Gem::Requirement
@@ -206,8 +207,10 @@ dependencies:
206
207
  - - "~>"
207
208
  - !ruby/object:Gem::Version
208
209
  version: '1.6'
209
- description: OpenID Connect Strategy for OmniAuth
210
- email: jjbohn@gmail.com
210
+ description: OpenID Connect Strategy for OmniAuth.
211
+ email:
212
+ - jjbohn@gmail.com
213
+ - m0n9oose@gmail.com
211
214
  executables: []
212
215
  extensions: []
213
216
  extra_rdoc_files: []
@@ -251,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
254
  version: '0'
252
255
  requirements: []
253
256
  rubyforge_project:
254
- rubygems_version: 2.5.1
257
+ rubygems_version: 2.7.6
255
258
  signing_key:
256
259
  specification_version: 4
257
260
  summary: OpenID Connect Strategy for OmniAuth