oidc_provider 0.5.0 → 0.7.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10bb08cbed4cbea9285dfffab50e3b3a399455808160062663977739a058c3cb
4
- data.tar.gz: 91447fac3b4d5e55cf17a6b24f3aaec3cbf7a342078aa8f9a06a55aaa9641b3b
3
+ metadata.gz: 96fc579002b69bf4274b426dc72fa5f17faa21b671ef2efda3a77da57ad87df7
4
+ data.tar.gz: 72d98a17ea78cd0d5f434065b0446e8a2912d8917e120e635b53d9ad0de63662
5
5
  SHA512:
6
- metadata.gz: ad8311652ee7d108ef25ea95550b4c33385f6d49f526343d04e7ec5f98bcaf0f9480d567903d3a5af9bf1c01f6380f579bb43f0ddb34ab5114ab87b67fe85c71
7
- data.tar.gz: f8acc9980ff2f942fcd1f3ef1f696cbbea989bcb47e947cae78d739652a20f05bf1a84cd96ec654077bb5eff339fd5e74f30538e568dcb17c89e1836648d5c24
6
+ metadata.gz: c345282497779df9fd407de374ab3796d0a65e63e9d7de99f638fa4dee109866326d7e39ee4c52036c943ee834b9356d142aefd9ce06bb9c20f4f0af6ce2f549
7
+ data.tar.gz: 93d63b921a1202547009333afa209bc7a03a4ef43d3382c8cfdb2906e6d49d0f5c31bb23673a1b38f1625649b229023f9c4b6465c7c4ea6e317729ddc025673b
@@ -57,7 +57,7 @@ module OIDCProvider
57
57
  # So we will forcibly sign out the user here and then redirect them so they
58
58
  # don't get redirected back to the url that contains `prompt=login`
59
59
  unauthenticate!
60
- redirect_to url_for(request.query_parameters.except(:prompt))
60
+ redirect_to url_for(request.query_parameters.except(:prompt)), allow_other_host: true
61
61
  end
62
62
  end
63
63
  end
@@ -5,7 +5,7 @@ module OIDCProvider
5
5
  def destroy
6
6
  unauthenticate!
7
7
  redirect_to "/" unless OIDCProvider.after_sign_out_path
8
- redirect_to OIDCProvider.after_sign_out_path.respond_to?(:call) ? OIDCProvider.after_sign_out_path.call(params) : OIDCProvider.after_sign_out_path
8
+ redirect_to (OIDCProvider.after_sign_out_path.respond_to?(:call) ? OIDCProvider.after_sign_out_path.call(params) : OIDCProvider.after_sign_out_path), allow_other_host: true
9
9
  end
10
10
  end
11
11
  end
@@ -9,7 +9,7 @@ module OIDCProvider
9
9
  attribute :code, :string, default: -> { SecureRandom.hex 32 }
10
10
  attribute :expires_at, :datetime, default: -> { 5.minutes.from_now }
11
11
 
12
- serialize :scopes, JSON
12
+ serialize :scopes, coder: JSON
13
13
 
14
14
  def expire!
15
15
  self.expires_at = Time.now
data/config/routes.rb CHANGED
@@ -4,5 +4,5 @@ OIDCProvider::Engine.routes.draw do
4
4
  get 'sessions/logout', to: 'sessions#destroy', as: :end_session
5
5
 
6
6
  post 'tokens', to: proc { |env| OIDCProvider::TokenEndpoint.new.call(env) }
7
- get 'jwks.json', as: :jwks, to: proc { |env| [200, {'Content-Type' => 'application/json'}, [OIDCProvider::IdToken.config[:jwk_set].to_json]] }
7
+ get 'jwks.json', as: :jwks, to: proc { |env| [200, {'Content-Type' => 'application/json'}, [OIDCProvider::IdToken.config[:jwk_set].as_json.to_json]] }
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module OIDCProvider
2
- VERSION = '0.5.0'
2
+ VERSION = '0.7.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oidc_provider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Carey
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-12 00:00:00.000000000 Z
11
+ date: 2025-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '7.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '5.0'
26
+ version: '7.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: openid_connect
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -78,7 +78,7 @@ homepage: https://github.com/brandnewbox/oidc_provider
78
78
  licenses:
79
79
  - MIT
80
80
  metadata: {}
81
- post_install_message:
81
+ post_install_message:
82
82
  rdoc_options: []
83
83
  require_paths:
84
84
  - lib
@@ -93,8 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubygems_version: 3.3.26
97
- signing_key:
96
+ rubygems_version: 3.5.11
97
+ signing_key:
98
98
  specification_version: 4
99
99
  summary: Uses the openid_connect gem to turn a Rails app into an OpenID Connect provider.
100
100
  test_files: []