omniauth_openid_connect 0.7.1 → 0.8.1
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/.github/workflows/main.yml +3 -3
- data/CHANGELOG.md +21 -13
- data/README.md +28 -25
- data/lib/omniauth/openid_connect/version.rb +1 -1
- data/lib/omniauth/strategies/openid_connect.rb +18 -6
- data/omniauth_openid_connect.gemspec +8 -7
- data/test/lib/omniauth/strategies/openid_connect_test.rb +126 -2
- data/test/strategy_test_case.rb +1 -1
- metadata +279 -236
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e630092823855b6fb561de02b219d62dca82105d50fdca797d3fefe27264e226
|
|
4
|
+
data.tar.gz: 79ece00e7e487bc9e2c8148280db0075c839c5a204dd10866be4e260d8c1fafc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ed0861179c73cbcf9fc984e6aee573acec861fbde25eda634c1d627dc2f330871ee9f3d70408288ec3cbbfec869460392e6c60814978cfe06ef9423a6278e76
|
|
7
|
+
data.tar.gz: 05a978c33013699ab45cd58121f63aea8d5e98975e7176f0afa656fdf0102a296101747e6dd1fedc227dad62a461e61f6b3cbc4856f75b06e7a9e5c4c92028d8
|
data/.github/workflows/main.yml
CHANGED
|
@@ -14,12 +14,12 @@ jobs:
|
|
|
14
14
|
strategy:
|
|
15
15
|
fail-fast: false
|
|
16
16
|
matrix:
|
|
17
|
-
ruby: ["2.7", "3.0", "3.1", "3.2"]
|
|
17
|
+
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "4.0", "jruby-10"]
|
|
18
18
|
name: Ruby ${{ matrix.ruby }}
|
|
19
19
|
|
|
20
20
|
steps:
|
|
21
21
|
- name: Checkout code
|
|
22
|
-
uses: actions/checkout@
|
|
22
|
+
uses: actions/checkout@v6
|
|
23
23
|
|
|
24
24
|
- name: Setup Ruby
|
|
25
25
|
uses: ruby/setup-ruby@v1
|
|
@@ -51,7 +51,7 @@ jobs:
|
|
|
51
51
|
runs-on: ubuntu-latest
|
|
52
52
|
steps:
|
|
53
53
|
- name: Checkout code
|
|
54
|
-
uses: actions/checkout@
|
|
54
|
+
uses: actions/checkout@v6
|
|
55
55
|
|
|
56
56
|
- name: Setup Ruby
|
|
57
57
|
uses: ruby/setup-ruby@v1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
# Unreleased
|
|
2
2
|
|
|
3
|
-
# v0.
|
|
3
|
+
# v0.8.1 (2026-11-27)
|
|
4
|
+
|
|
5
|
+
- Prefer the session nonce over the `nonce` callback parameter when verifying ID tokens (https://github.com/omniauth/omniauth_openid_connect/security/advisories/GHSA-f933-58j6-h68w)
|
|
6
|
+
|
|
7
|
+
# v0.8.0 (2024-07-04)
|
|
8
|
+
|
|
9
|
+
- Add `send_state` parameter to disable sending of state (https://github.com/omniauth/omniauth_openid_connect/pull/182)
|
|
10
|
+
|
|
11
|
+
# v0.7.1 (2023-04-26)
|
|
4
12
|
|
|
5
13
|
- Fix handling of JWKS response (https://github.com/omniauth/omniauth_openid_connect/pull/157)
|
|
6
14
|
|
|
7
|
-
# v0.7.0 (25
|
|
15
|
+
# v0.7.0 (2023-04-25)
|
|
8
16
|
|
|
9
17
|
- Update openid_connect to 2.2 (https://github.com/omniauth/omniauth_openid_connect/pull/153)
|
|
10
18
|
- Drop Ruby 2.5 and 2.6 CI support (https://github.com/omniauth/omniauth_openid_connect/pull/154)
|
|
11
19
|
- Improvements to README (https://github.com/omniauth/omniauth_openid_connect/pull/152, https://github.com/omniauth/omniauth_openid_connect/pull/151)
|
|
12
20
|
- Add option `logout_path` (https://github.com/omniauth/omniauth_openid_connect/pull/143)
|
|
13
21
|
|
|
14
|
-
# v0.6.1 (22
|
|
22
|
+
# v0.6.1 (2023-02-22)
|
|
15
23
|
|
|
16
24
|
- Fix uninitialized constant error (https://github.com/omniauth/omniauth_openid_connect/pull/147)
|
|
17
25
|
|
|
18
|
-
# v0.6.0 (
|
|
26
|
+
# v0.6.0 (2023-01-22)
|
|
19
27
|
|
|
20
28
|
- Support verification of HS256-signed JWTs (https://github.com/omniauth/omniauth_openid_connect/pull/134)
|
|
21
29
|
|
|
22
|
-
# v0.5.0 (26
|
|
30
|
+
# v0.5.0 (2022-12-26)
|
|
23
31
|
|
|
24
32
|
- Support the "nonce" parameter forwarding without a session [#130](https://github.com/omniauth/omniauth_openid_connect/pull/130)
|
|
25
33
|
- Fetch key from JWKS URI if available [#133](https://github.com/omniauth/omniauth_openid_connect/pull/133)
|
|
@@ -27,7 +35,7 @@
|
|
|
27
35
|
- Add email_verified claim in user info [#131](https://github.com/omniauth/omniauth_openid_connect/pull/131)
|
|
28
36
|
- Add PKCE verification support [#128](https://github.com/omniauth/omniauth_openid_connect/pull/128)
|
|
29
37
|
|
|
30
|
-
# v0.4.0 (06
|
|
38
|
+
# v0.4.0 (2022-02-06)
|
|
31
39
|
|
|
32
40
|
- Support dynamic parameters to the authorize URI [#90](https://github.com/omniauth/omniauth_openid_connect/pull/90)
|
|
33
41
|
- Upgrade Faker and replace Travis with Github Actions [#102](https://github.com/omniauth/omniauth_openid_connect/pull/102)
|
|
@@ -35,12 +43,12 @@
|
|
|
35
43
|
- Fall back to the discovered jwks when no key specified [#97](https://github.com/omniauth/omniauth_openid_connect/pull/97)
|
|
36
44
|
- Allow updating to omniauth v2 [#88](https://github.com/omniauth/omniauth_openid_connect/pull/88)
|
|
37
45
|
|
|
38
|
-
# v0.3.5 (07
|
|
46
|
+
# v0.3.5 (2020-06-07)
|
|
39
47
|
|
|
40
48
|
- bugfix: Info from decoded id_token is not exposed into `request.env['omniauth.auth']` [#61](https://github.com/m0n9oose/omniauth_openid_connect/pull/61)
|
|
41
49
|
- bugfix: NoMethodError (`undefined method 'count' for #<OpenIDConnect::ResponseObject::IdToken>`) [#60](https://github.com/m0n9oose/omniauth_openid_connect/pull/60)
|
|
42
50
|
|
|
43
|
-
# v0.3.4 (21
|
|
51
|
+
# v0.3.4 (2020-05-21)
|
|
44
52
|
|
|
45
53
|
- Try to verify id_token when response_type is code [#44](https://github.com/m0n9oose/omniauth_openid_connect/pull/44)
|
|
46
54
|
- Provide more information on error [#49](https://github.com/m0n9oose/omniauth_openid_connect/pull/49)
|
|
@@ -49,7 +57,7 @@
|
|
|
49
57
|
- refactor: take uid_field from raw_attributes [#54](https://github.com/m0n9oose/omniauth_openid_connect/pull/54)
|
|
50
58
|
- chore(ci): add 2.7, ruby-head and jruby-head [#55](https://github.com/m0n9oose/omniauth_openid_connect/pull/55)
|
|
51
59
|
|
|
52
|
-
# v0.3.3 (09
|
|
60
|
+
# v0.3.3 (2019-11-09)
|
|
53
61
|
|
|
54
62
|
- Pass `acr_values` to authorize url [#43](https://github.com/m0n9oose/omniauth_openid_connect/pull/43)
|
|
55
63
|
- Add raw info for id token [#42](https://github.com/m0n9oose/omniauth_openid_connect/pull/42)
|
|
@@ -59,17 +67,17 @@
|
|
|
59
67
|
- Fix gemspec homepage [#33](https://github.com/m0n9oose/omniauth_openid_connect/pull/33)
|
|
60
68
|
- Add support for `response_type` `id_token` [#32](https://github.com/m0n9oose/omniauth_openid_connect/pull/32)
|
|
61
69
|
|
|
62
|
-
# v0.3.2 (03
|
|
70
|
+
# v0.3.2 (2019-08-03)
|
|
63
71
|
|
|
64
72
|
- Use response_mode in `authorize_uri` if the option is defined [#30](https://github.com/m0n9oose/omniauth_openid_connect/pull/30)
|
|
65
73
|
- Move verification of `id_token` to before accessing tokens [#28](https://github.com/m0n9oose/omniauth_openid_connect/pull/28)
|
|
66
74
|
- Update omniauth dependency [#26](https://github.com/m0n9oose/omniauth_openid_connect/pull/26)
|
|
67
75
|
|
|
68
|
-
# v0.3.1 (08
|
|
76
|
+
# v0.3.1 (2019-06-08)
|
|
69
77
|
|
|
70
78
|
- Set default OmniAuth name to openid_connect [#23](https://github.com/m0n9oose/omniauth_openid_connect/pull/23)
|
|
71
79
|
|
|
72
|
-
# v0.3.0 (
|
|
80
|
+
# v0.3.0 (2019-04-07)
|
|
73
81
|
|
|
74
82
|
- RP-Initiated Logout phase [#5](https://github.com/m0n9oose/omniauth_openid_connect/pull/5)
|
|
75
83
|
- Allows `ui_locales`, `claims_locales` and `login_hint` as request params [#6](https://github.com/m0n9oose/omniauth_openid_connect/pull/6)
|
|
@@ -78,7 +86,7 @@
|
|
|
78
86
|
- Handle errors when fetching access_token at callback_phase [#17](https://github.com/m0n9oose/omniauth_openid_connect/pull/17)
|
|
79
87
|
- Allow state method to receive env [#19](https://github.com/m0n9oose/omniauth_openid_connect/pull/19)
|
|
80
88
|
|
|
81
|
-
# v0.2.4 (06
|
|
89
|
+
# v0.2.4 (2019-01-06)
|
|
82
90
|
|
|
83
91
|
- Prompt and login hint [#4](https://github.com/m0n9oose/omniauth_openid_connect/pull/4)
|
|
84
92
|
- Bump openid_connect dependency [#9](https://github.com/m0n9oose/omniauth_openid_connect/pull/9)
|
data/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Or install it yourself as:
|
|
|
23
23
|
|
|
24
24
|
## Supported Ruby Versions
|
|
25
25
|
|
|
26
|
-
OmniAuth::OpenIDConnect is tested under 2.7, 3.0, 3.1, 3.2
|
|
26
|
+
OmniAuth::OpenIDConnect is tested under 2.7, 3.0, 3.1, 3.2, 3.3, 3.4
|
|
27
27
|
|
|
28
28
|
## Usage
|
|
29
29
|
|
|
@@ -70,30 +70,32 @@ end
|
|
|
70
70
|
|
|
71
71
|
### Options Overview
|
|
72
72
|
|
|
73
|
-
| Field | Description
|
|
74
|
-
|
|
75
|
-
| name | Arbitrary string to identify connection and identify it from other openid_connect providers
|
|
76
|
-
| issuer | Root url for the authorization server
|
|
77
|
-
| discovery | Should OpenID discovery be used. This is recommended if the IDP provides a discovery endpoint. See client config for how to manually enter discovered values.
|
|
78
|
-
| client_auth_method | Which authentication method to use to authenticate your app with the authorization server
|
|
79
|
-
| scope | Which OpenID scopes to include (:openid is always required)
|
|
80
|
-
| response_type | Which OAuth2 response type to use with the authorization request
|
|
81
|
-
| state | A value to be used for the OAuth2 state parameter on the authorization request. Can be a proc that generates a string.
|
|
82
|
-
| require_state | Should state
|
|
83
|
-
|
|
|
84
|
-
|
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
|
|
|
90
|
-
|
|
|
91
|
-
|
|
|
92
|
-
|
|
|
93
|
-
|
|
|
94
|
-
|
|
|
95
|
-
|
|
|
96
|
-
|
|
|
73
|
+
| Field | Description | Required | Default | Example/Options |
|
|
74
|
+
|------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|-------------------------------|-----------------------------------------------------|
|
|
75
|
+
| name | Arbitrary string to identify connection and identify it from other openid_connect providers | no | String: openid_connect | :my_idp |
|
|
76
|
+
| issuer | Root url for the authorization server | yes | | https://myprovider.com |
|
|
77
|
+
| discovery | Should OpenID discovery be used. This is recommended if the IDP provides a discovery endpoint. See client config for how to manually enter discovered values. | no | false | one of: true, false |
|
|
78
|
+
| client_auth_method | Which authentication method to use to authenticate your app with the authorization server | no | Sym: basic | "basic", "jwks" |
|
|
79
|
+
| scope | Which OpenID scopes to include (:openid is always required) | no | Array<sym> [:openid] | [:openid, :profile, :email] |
|
|
80
|
+
| response_type | Which OAuth2 response type to use with the authorization request | no | String: code | one of: 'code', 'id_token' |
|
|
81
|
+
| state | A value to be used for the OAuth2 state parameter on the authorization request. Can be a proc that generates a string. | no | Random 16 character string | Proc.new { SecureRandom.hex(32) } |
|
|
82
|
+
| require_state | Should the callback phase require that a state is present. If `send_state` is true, then the callback state must match the authorize state. This is recommended, not required by the OIDC specification. | no | true | false |
|
|
83
|
+
| send_state | Should the authorize phase send a `state` parameter - this is recommended, not required by the OIDC specification | no | true | false |
|
|
84
|
+
| response_mode | The response mode per [spec](https://openid.net/specs/oauth-v2-form-post-response-mode-1_0.html) | no | nil | one of: :query, :fragment, :form_post, :web_message |
|
|
85
|
+
| display | An optional parameter to the authorization request to determine how the authorization and consent page | no | nil | one of: :page, :popup, :touch, :wap |
|
|
86
|
+
| prompt | An optional parameter to the authorization request to determine what pages the user will be shown | no | nil | one of: :none, :login, :consent, :select_account |
|
|
87
|
+
| send_scope_to_token_endpoint | Should the scope parameter be sent to the authorization token endpoint? | no | true | one of: true, false |
|
|
88
|
+
| post_logout_redirect_uri | The logout redirect uri to use per the [session management draft](https://openid.net/specs/openid-connect-session-1_0.html) | no | empty | https://myapp.com/logout/callback |
|
|
89
|
+
| uid_field | The field of the user info response to be used as a unique id | no | 'sub' | "sub", "preferred_username" |
|
|
90
|
+
| extra_authorize_params | A hash of extra fixed parameters that will be merged to the authorization request | no | Hash | {"tenant" => "common"} |
|
|
91
|
+
| allow_authorize_params | A list of allowed dynamic parameters that will be merged to the authorization request | no | Array | [:screen_name] |
|
|
92
|
+
| pkce | Enable [PKCE flow](https://oauth.net/2/pkce/) | no | false | one of: true, false |
|
|
93
|
+
| pkce_verifier | Specify a custom PKCE verifier code. | no | A random 128-char string | Proc.new { SecureRandom.hex(64) } |
|
|
94
|
+
| pkce_options | Specify a custom implementation of the PKCE code challenge/method. | no | SHA256(code_challenge) in hex | Proc to customise the code challenge generation |
|
|
95
|
+
| client_options | A hash of client options detailed in its own section | yes | | |
|
|
96
|
+
| jwt_secret_base64 | For HMAC with SHA2 (e.g. HS256) signing algorithms, specify the base64-encoded secret used to sign the JWT token. Defaults to the OAuth2 client secret if not specified. | no | client_options.secret | "bXlzZWNyZXQ=\n" |
|
|
97
|
+
| logout_path | The log out is only triggered when the request path ends on this path | no | '/logout' | '/sign_out' |
|
|
98
|
+
| acr_values | Authentication Class Reference (ACR) values to be passed to the authorize_uri to enforce a specific level, see [RFC9470](https://www.rfc-editor.org/rfc/rfc9470.html) | no | nil | "c1 c2" |
|
|
97
99
|
|
|
98
100
|
### Client Config Options
|
|
99
101
|
|
|
@@ -107,6 +109,7 @@ These are the configuration options for the client_options hash of the configura
|
|
|
107
109
|
| scheme | The http scheme to use | https | |
|
|
108
110
|
| host | The host of the authorization server | nil | |
|
|
109
111
|
| port | The port for the authorization server | 443 | |
|
|
112
|
+
| audience | The intended consumer (`aud` field) of the id_token | nil | |
|
|
110
113
|
| authorization_endpoint | The authorize endpoint on the authorization server | /authorize | yes |
|
|
111
114
|
| token_endpoint | The token endpoint on the authorization server | /token | yes |
|
|
112
115
|
| userinfo_endpoint | The user info endpoint on the authorization server | /userinfo | yes |
|
|
@@ -28,6 +28,7 @@ module OmniAuth
|
|
|
28
28
|
scheme: 'https',
|
|
29
29
|
host: nil,
|
|
30
30
|
port: 443,
|
|
31
|
+
audience: nil,
|
|
31
32
|
authorization_endpoint: '/authorize',
|
|
32
33
|
token_endpoint: '/token',
|
|
33
34
|
userinfo_endpoint: '/userinfo',
|
|
@@ -42,6 +43,7 @@ module OmniAuth
|
|
|
42
43
|
option :client_x509_signing_key
|
|
43
44
|
option :scope, [:openid]
|
|
44
45
|
option :response_type, 'code' # ['code', 'id_token']
|
|
46
|
+
option :send_state, true
|
|
45
47
|
option :require_state, true
|
|
46
48
|
option :state
|
|
47
49
|
option :response_mode # [:query, :fragment, :form_post, :web_message]
|
|
@@ -120,7 +122,12 @@ module OmniAuth
|
|
|
120
122
|
def callback_phase
|
|
121
123
|
error = params['error_reason'] || params['error']
|
|
122
124
|
error_description = params['error_description'] || params['error_reason']
|
|
123
|
-
invalid_state =
|
|
125
|
+
invalid_state =
|
|
126
|
+
if options.send_state
|
|
127
|
+
(options.require_state && params['state'].to_s.empty?) || params['state'] != stored_state
|
|
128
|
+
else
|
|
129
|
+
false
|
|
130
|
+
end
|
|
124
131
|
|
|
125
132
|
raise CallbackError, error: params['error'], reason: error_description, uri: params['error_uri'] if error
|
|
126
133
|
raise CallbackError, error: :csrf_detected, reason: "Invalid 'state' parameter" if invalid_state
|
|
@@ -169,13 +176,12 @@ module OmniAuth
|
|
|
169
176
|
end_session_uri.to_s
|
|
170
177
|
end
|
|
171
178
|
|
|
172
|
-
def authorize_uri
|
|
179
|
+
def authorize_uri # rubocop:disable Metrics/AbcSize
|
|
173
180
|
client.redirect_uri = redirect_uri
|
|
174
181
|
opts = {
|
|
175
182
|
response_type: options.response_type,
|
|
176
183
|
response_mode: options.response_mode,
|
|
177
184
|
scope: options.scope,
|
|
178
|
-
state: new_state,
|
|
179
185
|
login_hint: params['login_hint'],
|
|
180
186
|
ui_locales: params['ui_locales'],
|
|
181
187
|
claims_locales: params['claims_locales'],
|
|
@@ -185,6 +191,7 @@ module OmniAuth
|
|
|
185
191
|
acr_values: options.acr_values,
|
|
186
192
|
}
|
|
187
193
|
|
|
194
|
+
opts[:state] = new_state if options.send_state
|
|
188
195
|
opts.merge!(options.extra_authorize_params) unless options.extra_authorize_params.empty?
|
|
189
196
|
|
|
190
197
|
options.allow_authorize_params.each do |key|
|
|
@@ -464,9 +471,14 @@ module OmniAuth
|
|
|
464
471
|
def verify_id_token!(id_token)
|
|
465
472
|
return unless id_token
|
|
466
473
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
474
|
+
verify_kwargs = {
|
|
475
|
+
issuer: options.issuer,
|
|
476
|
+
client_id: client_options.identifier,
|
|
477
|
+
nonce: stored_nonce.presence || params['nonce'].presence,
|
|
478
|
+
}
|
|
479
|
+
verify_kwargs.merge!(audience: client_options.audience) if client_options.audience
|
|
480
|
+
|
|
481
|
+
decode_id_token(id_token).verify!(**verify_kwargs)
|
|
470
482
|
end
|
|
471
483
|
|
|
472
484
|
class CallbackError < StandardError
|
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
spec.email = ['jjbohn@gmail.com', 'm0n9oose@gmail.com']
|
|
12
12
|
spec.summary = 'OpenID Connect Strategy for OmniAuth'
|
|
13
13
|
spec.description = 'OpenID Connect Strategy for OmniAuth.'
|
|
14
|
-
spec.homepage = 'https://github.com/
|
|
14
|
+
spec.homepage = 'https://github.com/omniauth/omniauth_openid_connect'
|
|
15
15
|
spec.license = 'MIT'
|
|
16
16
|
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0")
|
|
@@ -20,21 +20,22 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
spec.require_paths = ['lib']
|
|
21
21
|
|
|
22
22
|
spec.metadata = {
|
|
23
|
-
'bug_tracker_uri' => 'https://github.com/
|
|
24
|
-
'changelog_uri' => 'https://github.com/
|
|
25
|
-
'documentation_uri' => "https://github.com/
|
|
26
|
-
'source_code_uri' => "https://github.com/
|
|
23
|
+
'bug_tracker_uri' => 'https://github.com/omniauth/omniauth_openid_connect/issues',
|
|
24
|
+
'changelog_uri' => 'https://github.com/omniauth/omniauth_openid_connect/releases',
|
|
25
|
+
'documentation_uri' => "https://github.com/omniauth/omniauth_openid_connect/tree/v#{spec.version}#readme",
|
|
26
|
+
'source_code_uri' => "https://github.com/omniauth/omniauth_openid_connect/tree/v#{spec.version}",
|
|
27
27
|
'rubygems_mfa_required' => 'true',
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
spec.add_dependency 'omniauth', '>= 1.9', '< 3'
|
|
31
31
|
spec.add_dependency 'openid_connect', '~> 2.2'
|
|
32
|
+
spec.add_dependency 'ostruct', '~> 0.6.3'
|
|
32
33
|
spec.add_development_dependency 'faker', '~> 2.0'
|
|
33
34
|
spec.add_development_dependency 'guard', '~> 2.14'
|
|
34
35
|
spec.add_development_dependency 'guard-bundler', '~> 2.2'
|
|
35
36
|
spec.add_development_dependency 'guard-minitest', '~> 2.4'
|
|
36
|
-
spec.add_development_dependency 'minitest', '~> 5.
|
|
37
|
-
spec.add_development_dependency 'mocha', '~> 1
|
|
37
|
+
spec.add_development_dependency 'minitest', '~> 5.20'
|
|
38
|
+
spec.add_development_dependency 'mocha', '~> 2.1'
|
|
38
39
|
spec.add_development_dependency 'rake', '~> 12.0'
|
|
39
40
|
spec.add_development_dependency 'rubocop', '~> 1.12'
|
|
40
41
|
spec.add_development_dependency 'simplecov', '~> 0.21'
|
|
@@ -248,6 +248,27 @@ module OmniAuth
|
|
|
248
248
|
strategy.callback_phase
|
|
249
249
|
end
|
|
250
250
|
|
|
251
|
+
def test_callback_phase_with_audience
|
|
252
|
+
state = SecureRandom.hex(16)
|
|
253
|
+
strategy.options.response_type = 'id_token'
|
|
254
|
+
strategy.options.issuer = 'example.com'
|
|
255
|
+
strategy.options.client_options.audience = 'my_audience'
|
|
256
|
+
|
|
257
|
+
id_token = stub('OpenIDConnect::ResponseObject::IdToken')
|
|
258
|
+
id_token.expects(:verify!).with(issuer: strategy.options.issuer, client_id: @identifier, audience: 'my_audience',
|
|
259
|
+
nonce: nonce).returns(true)
|
|
260
|
+
id_token.stubs(:raw_attributes, :to_h).returns(payload)
|
|
261
|
+
|
|
262
|
+
request.stubs(:params).returns('state' => state, 'nounce' => nonce, 'id_token' => id_token)
|
|
263
|
+
request.stubs(:path).returns('')
|
|
264
|
+
|
|
265
|
+
strategy.stubs(:decode_id_token).returns(id_token)
|
|
266
|
+
strategy.stubs(:stored_state).returns(state)
|
|
267
|
+
|
|
268
|
+
strategy.call!('rack.session' => { 'omniauth.state' => state, 'omniauth.nonce' => nonce })
|
|
269
|
+
strategy.callback_phase
|
|
270
|
+
end
|
|
271
|
+
|
|
251
272
|
def test_callback_phase_with_id_token_and_param_provided_nonce # rubocop:disable Metrics/AbcSize
|
|
252
273
|
code = SecureRandom.hex(16)
|
|
253
274
|
state = SecureRandom.hex(16)
|
|
@@ -280,6 +301,65 @@ module OmniAuth
|
|
|
280
301
|
strategy.callback_phase
|
|
281
302
|
end
|
|
282
303
|
|
|
304
|
+
def test_callback_phase_with_id_token_rejects_param_nonce_when_session_has_nonce
|
|
305
|
+
state = SecureRandom.hex(16)
|
|
306
|
+
request.stubs(:params).returns('id_token' => jwt.to_s, 'state' => state, 'nonce' => nonce)
|
|
307
|
+
request.stubs(:path).returns('')
|
|
308
|
+
|
|
309
|
+
strategy.options.issuer = issuer
|
|
310
|
+
strategy.options.client_signing_alg = :RS256
|
|
311
|
+
strategy.options.client_jwk_signing_key = jwks.to_json
|
|
312
|
+
strategy.options.response_type = 'id_token'
|
|
313
|
+
|
|
314
|
+
strategy.call!('rack.session' => { 'omniauth.state' => state, 'omniauth.nonce' => SecureRandom.hex(16) })
|
|
315
|
+
|
|
316
|
+
assert_raises ::OpenIDConnect::ResponseObject::IdToken::InvalidNonce do
|
|
317
|
+
strategy.callback_phase
|
|
318
|
+
end
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
def test_callback_phase_with_code_rejects_param_nonce_when_session_has_nonce
|
|
322
|
+
state = SecureRandom.hex(16)
|
|
323
|
+
request.stubs(:params).returns('code' => SecureRandom.hex(16), 'state' => state, 'nonce' => nonce)
|
|
324
|
+
request.stubs(:path).returns('')
|
|
325
|
+
|
|
326
|
+
strategy.options.issuer = issuer
|
|
327
|
+
strategy.options.client_signing_alg = :RS256
|
|
328
|
+
strategy.options.client_jwk_signing_key = jwks.to_json
|
|
329
|
+
strategy.options.response_type = 'code'
|
|
330
|
+
strategy.stubs(:discover!)
|
|
331
|
+
|
|
332
|
+
access_token = stub('OpenIDConnect::AccessToken')
|
|
333
|
+
access_token.stubs(:access_token)
|
|
334
|
+
access_token.stubs(:refresh_token)
|
|
335
|
+
access_token.stubs(:expires_in)
|
|
336
|
+
access_token.stubs(:scope)
|
|
337
|
+
access_token.stubs(:id_token).returns(jwt.to_s)
|
|
338
|
+
client.stubs(:access_token!).returns(access_token)
|
|
339
|
+
|
|
340
|
+
strategy.call!('rack.session' => { 'omniauth.state' => state, 'omniauth.nonce' => SecureRandom.hex(16) })
|
|
341
|
+
|
|
342
|
+
assert_raises ::OpenIDConnect::ResponseObject::IdToken::InvalidNonce do
|
|
343
|
+
strategy.callback_phase
|
|
344
|
+
end
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
def test_callback_phase_with_id_token_accepts_param_nonce_without_session
|
|
348
|
+
request.stubs(:params).returns('id_token' => jwt.to_s, 'nonce' => nonce)
|
|
349
|
+
request.stubs(:path).returns('')
|
|
350
|
+
|
|
351
|
+
strategy.options.issuer = issuer
|
|
352
|
+
strategy.options.client_signing_alg = :RS256
|
|
353
|
+
strategy.options.client_jwk_signing_key = jwks.to_json
|
|
354
|
+
strategy.options.response_type = 'id_token'
|
|
355
|
+
strategy.options.send_state = false
|
|
356
|
+
|
|
357
|
+
strategy.call!('rack.session' => {})
|
|
358
|
+
strategy.callback_phase
|
|
359
|
+
|
|
360
|
+
assert_equal payload[:sub], strategy.env['omniauth.auth']['uid']
|
|
361
|
+
end
|
|
362
|
+
|
|
283
363
|
def test_callback_phase_with_id_token_no_kid
|
|
284
364
|
other_rsa_private = OpenSSL::PKey::RSA.generate(2048)
|
|
285
365
|
|
|
@@ -453,6 +533,50 @@ module OmniAuth
|
|
|
453
533
|
strategy.callback_phase
|
|
454
534
|
end
|
|
455
535
|
|
|
536
|
+
def test_callback_phase_with_send_state_disabled # rubocop:disable Metrics/AbcSize
|
|
537
|
+
code = SecureRandom.hex(16)
|
|
538
|
+
|
|
539
|
+
strategy.options.client_options.host = 'example.com'
|
|
540
|
+
strategy.options.require_state = true
|
|
541
|
+
strategy.options.send_state = false
|
|
542
|
+
strategy.options.discovery = true
|
|
543
|
+
refute_match(/state/, strategy.authorize_uri, 'URI must not contain state')
|
|
544
|
+
|
|
545
|
+
request.stubs(:params).returns('code' => code)
|
|
546
|
+
request.stubs(:path).returns('')
|
|
547
|
+
|
|
548
|
+
issuer = stub('OpenIDConnect::Discovery::Issuer')
|
|
549
|
+
issuer.stubs(:issuer).returns('https://example.com/')
|
|
550
|
+
::OpenIDConnect::Discovery::Provider.stubs(:discover!).returns(issuer)
|
|
551
|
+
|
|
552
|
+
config = stub('OpenIDConnect::Discovery::Provder::Config')
|
|
553
|
+
config.stubs(:authorization_endpoint).returns('https://example.com/authorization')
|
|
554
|
+
config.stubs(:token_endpoint).returns('https://example.com/token')
|
|
555
|
+
config.stubs(:userinfo_endpoint).returns('https://example.com/userinfo')
|
|
556
|
+
config.stubs(:jwks_uri).returns('https://example.com/jwks')
|
|
557
|
+
config.stubs(:jwks).returns(JSON::JWK::Set.new(jwks['keys']))
|
|
558
|
+
|
|
559
|
+
::OpenIDConnect::Discovery::Provider::Config.stubs(:discover!).with('https://example.com/').returns(config)
|
|
560
|
+
|
|
561
|
+
id_token = stub('OpenIDConnect::ResponseObject::IdToken')
|
|
562
|
+
id_token.stubs(:raw_attributes).returns('sub' => 'sub', 'name' => 'name', 'email' => 'email')
|
|
563
|
+
id_token.stubs(:verify!).with(issuer: 'https://example.com/', client_id: @identifier, nonce: nonce).returns(true)
|
|
564
|
+
::OpenIDConnect::ResponseObject::IdToken.stubs(:decode).returns(id_token)
|
|
565
|
+
|
|
566
|
+
strategy.unstub(:user_info)
|
|
567
|
+
access_token = stub('OpenIDConnect::AccessToken')
|
|
568
|
+
access_token.stubs(:access_token)
|
|
569
|
+
access_token.stubs(:refresh_token)
|
|
570
|
+
access_token.stubs(:expires_in)
|
|
571
|
+
access_token.stubs(:scope)
|
|
572
|
+
access_token.stubs(:id_token).returns(jwt.to_s)
|
|
573
|
+
client.expects(:access_token!).at_least_once.returns(access_token)
|
|
574
|
+
access_token.expects(:userinfo!).returns(user_info)
|
|
575
|
+
|
|
576
|
+
strategy.call!('rack.session' => { 'omniauth.nonce' => nonce })
|
|
577
|
+
strategy.callback_phase
|
|
578
|
+
end
|
|
579
|
+
|
|
456
580
|
def test_callback_phase_with_no_state_without_state_verification # rubocop:disable Metrics/AbcSize
|
|
457
581
|
code = SecureRandom.hex(16)
|
|
458
582
|
|
|
@@ -878,8 +1002,8 @@ module OmniAuth
|
|
|
878
1002
|
# test pkce disabled
|
|
879
1003
|
strategy.options.pkce = false
|
|
880
1004
|
|
|
881
|
-
assert(
|
|
882
|
-
assert(
|
|
1005
|
+
assert(strategy.authorize_uri !~ /code_challenge=/, 'URI must not contain code challenge param')
|
|
1006
|
+
assert(strategy.authorize_uri !~ /code_challenge_method=/, 'URI must not contain code challenge method param')
|
|
883
1007
|
|
|
884
1008
|
# test pkce enabled with default opts
|
|
885
1009
|
strategy.options.pkce = true
|
data/test/strategy_test_case.rb
CHANGED
metadata
CHANGED
|
@@ -1,262 +1,305 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth_openid_connect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- John Bohn
|
|
8
|
-
- Ilya Shcherbinin
|
|
9
|
-
autorequire:
|
|
7
|
+
- John Bohn
|
|
8
|
+
- Ilya Shcherbinin
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
|
-
- !ruby/object:Gem::Dependency
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
- !ruby/object:Gem::
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
- !ruby/object:Gem::Dependency
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
- !ruby/object:Gem::
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
- !ruby/object:Gem::
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: omniauth
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
-
|
|
18
|
+
- ">="
|
|
19
|
+
- !ruby/object:Gem::Version
|
|
20
|
+
version: "1.9"
|
|
21
|
+
-
|
|
22
|
+
- "<"
|
|
23
|
+
- !ruby/object:Gem::Version
|
|
24
|
+
version: "3"
|
|
25
|
+
type: :runtime
|
|
26
|
+
prerelease: false
|
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
28
|
+
requirements:
|
|
29
|
+
-
|
|
30
|
+
- ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: "1.9"
|
|
33
|
+
-
|
|
34
|
+
- "<"
|
|
35
|
+
- !ruby/object:Gem::Version
|
|
36
|
+
version: "3"
|
|
37
|
+
- !ruby/object:Gem::Dependency
|
|
38
|
+
name: openid_connect
|
|
39
|
+
requirement: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
-
|
|
42
|
+
- ~>
|
|
43
|
+
- !ruby/object:Gem::Version
|
|
44
|
+
version: "2.2"
|
|
45
|
+
type: :runtime
|
|
46
|
+
prerelease: false
|
|
47
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
48
|
+
requirements:
|
|
49
|
+
-
|
|
50
|
+
- ~>
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: "2.2"
|
|
53
|
+
- !ruby/object:Gem::Dependency
|
|
54
|
+
name: ostruct
|
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
|
56
|
+
requirements:
|
|
57
|
+
-
|
|
58
|
+
- ~>
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: 0.6.3
|
|
61
|
+
type: :runtime
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
-
|
|
66
|
+
- ~>
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: 0.6.3
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: faker
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
-
|
|
74
|
+
- ~>
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: "2.0"
|
|
77
|
+
type: :development
|
|
78
|
+
prerelease: false
|
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
80
|
+
requirements:
|
|
81
|
+
-
|
|
82
|
+
- ~>
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: "2.0"
|
|
85
|
+
- !ruby/object:Gem::Dependency
|
|
86
|
+
name: guard
|
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
|
88
|
+
requirements:
|
|
89
|
+
-
|
|
90
|
+
- ~>
|
|
91
|
+
- !ruby/object:Gem::Version
|
|
92
|
+
version: "2.14"
|
|
93
|
+
type: :development
|
|
94
|
+
prerelease: false
|
|
95
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
96
|
+
requirements:
|
|
97
|
+
-
|
|
98
|
+
- ~>
|
|
99
|
+
- !ruby/object:Gem::Version
|
|
100
|
+
version: "2.14"
|
|
101
|
+
- !ruby/object:Gem::Dependency
|
|
102
|
+
name: guard-bundler
|
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
|
104
|
+
requirements:
|
|
105
|
+
-
|
|
106
|
+
- ~>
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: "2.2"
|
|
109
|
+
type: :development
|
|
110
|
+
prerelease: false
|
|
111
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
112
|
+
requirements:
|
|
113
|
+
-
|
|
114
|
+
- ~>
|
|
115
|
+
- !ruby/object:Gem::Version
|
|
116
|
+
version: "2.2"
|
|
117
|
+
- !ruby/object:Gem::Dependency
|
|
118
|
+
name: guard-minitest
|
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
|
120
|
+
requirements:
|
|
121
|
+
-
|
|
122
|
+
- ~>
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: "2.4"
|
|
125
|
+
type: :development
|
|
126
|
+
prerelease: false
|
|
127
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
-
|
|
130
|
+
- ~>
|
|
131
|
+
- !ruby/object:Gem::Version
|
|
132
|
+
version: "2.4"
|
|
133
|
+
- !ruby/object:Gem::Dependency
|
|
134
|
+
name: minitest
|
|
135
|
+
requirement: !ruby/object:Gem::Requirement
|
|
136
|
+
requirements:
|
|
137
|
+
-
|
|
138
|
+
- ~>
|
|
139
|
+
- !ruby/object:Gem::Version
|
|
140
|
+
version: "5.20"
|
|
141
|
+
type: :development
|
|
142
|
+
prerelease: false
|
|
143
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
144
|
+
requirements:
|
|
145
|
+
-
|
|
146
|
+
- ~>
|
|
147
|
+
- !ruby/object:Gem::Version
|
|
148
|
+
version: "5.20"
|
|
149
|
+
- !ruby/object:Gem::Dependency
|
|
150
|
+
name: mocha
|
|
151
|
+
requirement: !ruby/object:Gem::Requirement
|
|
152
|
+
requirements:
|
|
153
|
+
-
|
|
154
|
+
- ~>
|
|
155
|
+
- !ruby/object:Gem::Version
|
|
156
|
+
version: "2.1"
|
|
157
|
+
type: :development
|
|
158
|
+
prerelease: false
|
|
159
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
160
|
+
requirements:
|
|
161
|
+
-
|
|
162
|
+
- ~>
|
|
163
|
+
- !ruby/object:Gem::Version
|
|
164
|
+
version: "2.1"
|
|
165
|
+
- !ruby/object:Gem::Dependency
|
|
166
|
+
name: rake
|
|
167
|
+
requirement: !ruby/object:Gem::Requirement
|
|
168
|
+
requirements:
|
|
169
|
+
-
|
|
170
|
+
- ~>
|
|
171
|
+
- !ruby/object:Gem::Version
|
|
172
|
+
version: "12.0"
|
|
173
|
+
type: :development
|
|
174
|
+
prerelease: false
|
|
175
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
176
|
+
requirements:
|
|
177
|
+
-
|
|
178
|
+
- ~>
|
|
179
|
+
- !ruby/object:Gem::Version
|
|
180
|
+
version: "12.0"
|
|
181
|
+
- !ruby/object:Gem::Dependency
|
|
182
|
+
name: rubocop
|
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
|
184
|
+
requirements:
|
|
185
|
+
-
|
|
186
|
+
- ~>
|
|
187
|
+
- !ruby/object:Gem::Version
|
|
188
|
+
version: "1.12"
|
|
189
|
+
type: :development
|
|
190
|
+
prerelease: false
|
|
191
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
192
|
+
requirements:
|
|
193
|
+
-
|
|
194
|
+
- ~>
|
|
195
|
+
- !ruby/object:Gem::Version
|
|
196
|
+
version: "1.12"
|
|
197
|
+
- !ruby/object:Gem::Dependency
|
|
198
|
+
name: simplecov
|
|
199
|
+
requirement: !ruby/object:Gem::Requirement
|
|
200
|
+
requirements:
|
|
201
|
+
-
|
|
202
|
+
- ~>
|
|
203
|
+
- !ruby/object:Gem::Version
|
|
204
|
+
version: "0.21"
|
|
205
|
+
type: :development
|
|
206
|
+
prerelease: false
|
|
207
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
208
|
+
requirements:
|
|
209
|
+
-
|
|
210
|
+
- ~>
|
|
211
|
+
- !ruby/object:Gem::Version
|
|
212
|
+
version: "0.21"
|
|
213
|
+
- !ruby/object:Gem::Dependency
|
|
214
|
+
name: simplecov-lcov
|
|
215
|
+
requirement: !ruby/object:Gem::Requirement
|
|
216
|
+
requirements:
|
|
217
|
+
-
|
|
218
|
+
- ~>
|
|
219
|
+
- !ruby/object:Gem::Version
|
|
220
|
+
version: "0.8"
|
|
221
|
+
type: :development
|
|
222
|
+
prerelease: false
|
|
223
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
224
|
+
requirements:
|
|
225
|
+
-
|
|
226
|
+
- ~>
|
|
227
|
+
- !ruby/object:Gem::Version
|
|
228
|
+
version: "0.8"
|
|
229
|
+
- !ruby/object:Gem::Dependency
|
|
230
|
+
name: webmock
|
|
231
|
+
requirement: !ruby/object:Gem::Requirement
|
|
232
|
+
requirements:
|
|
233
|
+
-
|
|
234
|
+
- ~>
|
|
235
|
+
- !ruby/object:Gem::Version
|
|
236
|
+
version: "3.18"
|
|
237
|
+
type: :development
|
|
238
|
+
prerelease: false
|
|
239
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
240
|
+
requirements:
|
|
241
|
+
-
|
|
242
|
+
- ~>
|
|
243
|
+
- !ruby/object:Gem::Version
|
|
244
|
+
version: "3.18"
|
|
202
245
|
description: OpenID Connect Strategy for OmniAuth.
|
|
203
246
|
email:
|
|
204
|
-
- jjbohn@gmail.com
|
|
205
|
-
- m0n9oose@gmail.com
|
|
247
|
+
- jjbohn@gmail.com
|
|
248
|
+
- m0n9oose@gmail.com
|
|
206
249
|
executables: []
|
|
207
250
|
extensions: []
|
|
208
251
|
extra_rdoc_files: []
|
|
209
252
|
files:
|
|
210
|
-
-
|
|
211
|
-
-
|
|
212
|
-
-
|
|
213
|
-
-
|
|
214
|
-
- CHANGELOG.md
|
|
215
|
-
- Gemfile
|
|
216
|
-
- Guardfile
|
|
217
|
-
- LICENSE.txt
|
|
218
|
-
- README.md
|
|
219
|
-
- Rakefile
|
|
220
|
-
- lib/omniauth/openid_connect.rb
|
|
221
|
-
- lib/omniauth/openid_connect/errors.rb
|
|
222
|
-
- lib/omniauth/openid_connect/version.rb
|
|
223
|
-
- lib/omniauth/strategies/openid_connect.rb
|
|
224
|
-
- lib/omniauth_openid_connect.rb
|
|
225
|
-
- omniauth_openid_connect.gemspec
|
|
226
|
-
- test/fixtures/test.crt
|
|
227
|
-
- test/lib/omniauth/strategies/openid_connect_test.rb
|
|
228
|
-
- test/strategy_test_case.rb
|
|
229
|
-
- test/test_helper.rb
|
|
230
|
-
homepage: https://github.com/
|
|
253
|
+
- .github/stale.yml
|
|
254
|
+
- .github/workflows/main.yml
|
|
255
|
+
- .gitignore
|
|
256
|
+
- .rubocop.yml
|
|
257
|
+
- CHANGELOG.md
|
|
258
|
+
- Gemfile
|
|
259
|
+
- Guardfile
|
|
260
|
+
- LICENSE.txt
|
|
261
|
+
- README.md
|
|
262
|
+
- Rakefile
|
|
263
|
+
- lib/omniauth/openid_connect.rb
|
|
264
|
+
- lib/omniauth/openid_connect/errors.rb
|
|
265
|
+
- lib/omniauth/openid_connect/version.rb
|
|
266
|
+
- lib/omniauth/strategies/openid_connect.rb
|
|
267
|
+
- lib/omniauth_openid_connect.rb
|
|
268
|
+
- omniauth_openid_connect.gemspec
|
|
269
|
+
- test/fixtures/test.crt
|
|
270
|
+
- test/lib/omniauth/strategies/openid_connect_test.rb
|
|
271
|
+
- test/strategy_test_case.rb
|
|
272
|
+
- test/test_helper.rb
|
|
273
|
+
homepage: "https://github.com/omniauth/omniauth_openid_connect"
|
|
231
274
|
licenses:
|
|
232
|
-
- MIT
|
|
275
|
+
- MIT
|
|
233
276
|
metadata:
|
|
234
|
-
bug_tracker_uri: https://github.com/
|
|
235
|
-
changelog_uri: https://github.com/
|
|
236
|
-
documentation_uri: https://github.com/
|
|
237
|
-
source_code_uri: https://github.com/
|
|
238
|
-
rubygems_mfa_required:
|
|
239
|
-
post_install_message:
|
|
277
|
+
bug_tracker_uri: "https://github.com/omniauth/omniauth_openid_connect/issues"
|
|
278
|
+
changelog_uri: "https://github.com/omniauth/omniauth_openid_connect/releases"
|
|
279
|
+
documentation_uri: "https://github.com/omniauth/omniauth_openid_connect/tree/v0.8.1#readme"
|
|
280
|
+
source_code_uri: "https://github.com/omniauth/omniauth_openid_connect/tree/v0.8.1"
|
|
281
|
+
rubygems_mfa_required: "true"
|
|
240
282
|
rdoc_options: []
|
|
241
283
|
require_paths:
|
|
242
|
-
- lib
|
|
284
|
+
- lib
|
|
243
285
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
244
286
|
requirements:
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
287
|
+
-
|
|
288
|
+
- ">="
|
|
289
|
+
- !ruby/object:Gem::Version
|
|
290
|
+
version: "0"
|
|
248
291
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
249
292
|
requirements:
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
293
|
+
-
|
|
294
|
+
- ">="
|
|
295
|
+
- !ruby/object:Gem::Version
|
|
296
|
+
version: "0"
|
|
253
297
|
requirements: []
|
|
254
|
-
rubygems_version:
|
|
255
|
-
signing_key:
|
|
298
|
+
rubygems_version: 4.1.1
|
|
256
299
|
specification_version: 4
|
|
257
300
|
summary: OpenID Connect Strategy for OmniAuth
|
|
258
301
|
test_files:
|
|
259
|
-
- test/fixtures/test.crt
|
|
260
|
-
- test/lib/omniauth/strategies/openid_connect_test.rb
|
|
261
|
-
- test/strategy_test_case.rb
|
|
262
|
-
- test/test_helper.rb
|
|
302
|
+
- test/fixtures/test.crt
|
|
303
|
+
- test/lib/omniauth/strategies/openid_connect_test.rb
|
|
304
|
+
- test/strategy_test_case.rb
|
|
305
|
+
- test/test_helper.rb
|