oidc_provider 0.4.0 → 0.6.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 +4 -4
- data/README.md +1 -1
- data/app/controllers/oidc_provider/authorizations_controller.rb +1 -1
- data/app/models/oidc_provider/authorization.rb +1 -1
- data/app/models/oidc_provider/id_token.rb +1 -1
- data/config/routes.rb +1 -1
- data/lib/oidc_provider/version.rb +1 -1
- data/lib/tasks/oidc_provider.rake +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4231c966d6dde889dbb66dd422032cb86e930a254eb3e2ba63d91f9f5fdd39b
|
4
|
+
data.tar.gz: 98261296d4c636097a092b7cabdbb31c8da5d933356c625b1fa443201219a415
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f3899352aa0c25c1e93ea34649fc90812f9babed14a1e6e3261bf70775d7749aa67bfad150f4b9b4b8fae8499246317ca45349eaa65c12917859bcc947c3118
|
7
|
+
data.tar.gz: 1013a95b8fcfc12b54f66f6bc792d1021fc416694c0e5d84ad18a34321b59bdf71b89b8e893898bdc3f3f1041ce69c1ebff6e44bc4b860ea9179d3170329e2db
|
data/README.md
CHANGED
@@ -43,7 +43,7 @@ $ rails db:migrate
|
|
43
43
|
|
44
44
|
This gem signs the generated [JWT (JSON Web Tokens)](https://jwt.io/) using a
|
45
45
|
private key that should exist at the path `lib/oidc_provider_key.pem` in your
|
46
|
-
Rails application.
|
46
|
+
Rails application (or in the path defined in the OIDC_PROVIDER_PRIVATE_KEY_PATH).
|
47
47
|
|
48
48
|
You can pass its passphrase using the `OIDC_PROVIDER_KEY_PASSPHRASE` environment
|
49
49
|
variable.
|
@@ -18,7 +18,7 @@ module OIDCProvider
|
|
18
18
|
oauth_response.code = authorization.code
|
19
19
|
oauth_response.redirect_uri = @redirect_uri
|
20
20
|
oauth_response.approve!
|
21
|
-
redirect_to oauth_response.location
|
21
|
+
redirect_to oauth_response.location, allow_other_host: true
|
22
22
|
|
23
23
|
# If we ever need to support denied authorizations that is done by:
|
24
24
|
# oauth_request.access_denied!
|
@@ -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,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
namespace :oidc_provider do
|
4
|
-
desc 'Generate the
|
4
|
+
desc 'Generate the oidc_provider_key.pem key file'
|
5
5
|
task generate_key: :environment do
|
6
6
|
key_filepath = OIDCProvider::IdToken.oidc_provider_key_path
|
7
7
|
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oidc_provider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.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:
|
11
|
+
date: 2025-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
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: '
|
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.
|
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: []
|