omniauth_oidc 0.2.3 → 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
2
  SHA256:
3
- metadata.gz: 5c8e9e95eb8465a662ba0afb8523278c42147c53eb578352229e78ae4b325312
4
- data.tar.gz: 48add3142f15a6a428d925359c908f01eabb52cf54aaee09ed4cf958fcba075a
3
+ metadata.gz: 5aa5a757616dc09eb3aa25438db2a4cca9faeb39fc95138868f7a081ace62b60
4
+ data.tar.gz: ee7b81ed9f08ff12a40213601889c1fb1ac729b8ae539bf6f6dcc6d46d83b37e
5
5
  SHA512:
6
- metadata.gz: 1d63037d94b36b91ff143458a961676817c3ebe9a20a08dcb1a2252ac9a423fc6612dd5ef9968ebfeec1a8909b1643a53e212d0e38bb835313c82d8867361628
7
- data.tar.gz: 6685d6045e34c7595a1cd21c6dfb91332ec07febafd7baae04a3ba58c1a7b25b345324f6d0bc44668ecec274bc502d3444e8eceae76afc53b42b2c1204aa035c
6
+ metadata.gz: 19493067196e2c2825fd7cdf1dd0ae9e00224a0a7ef36b4e972d358c893dc99f5ae3209293d5687f0d9f0fcc8758dd31bc838367d5adf9e91f6688c85feeb721
7
+ data.tar.gz: f1a3b4f7afea89fc5fe3318f5fd494b8605cbbb3dee763a94b97b2e1174c2028f1a045127f3352b5d4ea1788099ceb9ad202801b4bb963082d3f15d6e22af9d3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Released]
2
2
 
3
+ ## [0.2.4] - 2024-09-28
4
+ - Fix bug with configurable scopes
5
+
3
6
  ## [0.2.3] - 2024-08-04
4
7
  - Update readme
5
8
 
@@ -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.4"
5
5
  end
@@ -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.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suleyman Musayev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-04 00:00:00.000000000 Z
11
+ date: 2024-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty