omniauth_oidc 0.2.3 → 0.2.5

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
  SHA256:
3
- metadata.gz: 5c8e9e95eb8465a662ba0afb8523278c42147c53eb578352229e78ae4b325312
4
- data.tar.gz: 48add3142f15a6a428d925359c908f01eabb52cf54aaee09ed4cf958fcba075a
3
+ metadata.gz: 6f216e9adf3f5977be7fa947c1bb68b2bc0b8f839782d1c74242ed80e96e82bf
4
+ data.tar.gz: be732231d8223e0eaf8141cebb79bb76e0d3870b38d8cdd321750375a825f900
5
5
  SHA512:
6
- metadata.gz: 1d63037d94b36b91ff143458a961676817c3ebe9a20a08dcb1a2252ac9a423fc6612dd5ef9968ebfeec1a8909b1643a53e212d0e38bb835313c82d8867361628
7
- data.tar.gz: 6685d6045e34c7595a1cd21c6dfb91332ec07febafd7baae04a3ba58c1a7b25b345324f6d0bc44668ecec274bc502d3444e8eceae76afc53b42b2c1204aa035c
6
+ metadata.gz: 358eff70be45aac9029a2b099168c0a70232d137e78acdceea95189c69d49be57b1b2e3873c60d15529526f5aeecf201acb029ed0cae32814e5344a23f575404
7
+ data.tar.gz: d79bd8f9edce7b976a900e976fb601e12f6f5a08bec4a3b7840c2755c70c9113795721f205ad06b2b03130473bfe0a336cce4d63697d8d49c858365f8aff1174
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Released]
2
2
 
3
+ ## [0.2.5] - 2024-10-16
4
+ - Fix for uninitialized constant Oidc in strategy.rb:163
5
+
6
+ ## [0.2.4] - 2024-09-28
7
+ - Fix bug with configurable scopes
8
+
3
9
  ## [0.2.3] - 2024-08-04
4
10
  - Update readme
5
11
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OmniauthOidc
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.5"
5
5
  end
@@ -30,7 +30,7 @@ module OmniAuth
30
30
  private
31
31
 
32
32
  def fetch_key
33
- @fetch_key ||= parse_jwk_key(::Oidc.http_client.get(config.jwks_uri).body)
33
+ @fetch_key ||= parse_jwk_key(::OpenIDConnect.http_client.get(config.jwks_uri).body)
34
34
  end
35
35
 
36
36
  def base64_decoded_jwt_secret
@@ -30,7 +30,7 @@ module OmniAuth
30
30
 
31
31
  def_delegator :request, :params
32
32
 
33
- option :name, "oidc" # to separate each oidc provider available in the app
33
+ option :name, :oidc # to separate each oidc provider available in the app
34
34
  option(:client_options, identifier: nil, # client id, required
35
35
  secret: nil, # client secret, required
36
36
  host: nil, # oidc provider host, optional
@@ -48,7 +48,7 @@ module OmniAuth
48
48
  option :jwt_secret_base64
49
49
  option :client_jwk_signing_key
50
50
  option :client_x509_signing_key
51
- option :scope, [:openid]
51
+ option :scope, nil
52
52
  option :response_type, "code" # ['code', 'id_token']
53
53
  option :require_state, true
54
54
  option :state
@@ -158,7 +158,7 @@ module OmniAuth
158
158
 
159
159
  # By default Returns all scopes supported by the OIDC provider
160
160
  def scope
161
- config.scopes_supported || options.scope
161
+ options.scope || config.scopes_supported || [:open_id]
162
162
  end
163
163
 
164
164
  def authorization_code
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth_oidc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suleyman Musayev
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-04 00:00:00.000000000 Z
11
+ date: 2024-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -97,7 +97,7 @@ metadata:
97
97
  homepage_uri: https://github.com/msuliq/omniauth_oidc
98
98
  source_code_uri: https://github.com/msuliq/omniauth_oidc
99
99
  changelog_uri: https://github.com/msuliq/omniauth_oidc/blob/main/CHANGELOG.md
100
- post_install_message:
100
+ post_install_message:
101
101
  rdoc_options: []
102
102
  require_paths:
103
103
  - lib
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubygems_version: 3.1.6
116
- signing_key:
116
+ signing_key:
117
117
  specification_version: 4
118
118
  summary: Omniauth strategy to authenticate and retrieve user data using OpenID Connect
119
119
  (OIDC)