forest_admin_agent 1.2.0 → 1.2.2
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/lib/forest_admin_agent/http/Exceptions/authentication_open_id_client.rb +2 -3
- data/lib/forest_admin_agent/http/Exceptions/not_found_error.rb +3 -7
- data/lib/forest_admin_agent/routes/security/authentication.rb +2 -3
- data/lib/forest_admin_agent/utils/schema/schema_emitter.rb +1 -1
- data/lib/forest_admin_agent/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a56a37cdfd7ed783868dbca000d0c4deb0ab3bfb90707d5ed1cbaa7172e60787
|
4
|
+
data.tar.gz: f9ef8417a352bca6ec087531e76c1133ad5e808ce14204e5a3c764a168505ab7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42469893d26c088d2f90b776908d27d706202014db2b7720b3a9c5bef07abfe7b8197e9378107e61b023017545b55518d0a34903f88583cbecef14fdc82b34b4
|
7
|
+
data.tar.gz: d7e77d8159fdd8a00b1f5f87e365ecaf57dbd3686d82402d0e4afe4545b7f891a8534186c1065cecdd2fb57a434a9d05f2fb45c9c9e91a08c8a8f9dd2589b202
|
@@ -2,10 +2,9 @@ module ForestAdminAgent
|
|
2
2
|
module Http
|
3
3
|
module Exceptions
|
4
4
|
class AuthenticationOpenIdClient < HttpException
|
5
|
-
def initialize(
|
6
|
-
message = 'Authentication failed with OpenID Client',
|
5
|
+
def initialize(message = 'Authentication failed with OpenID Client',
|
7
6
|
name = 'AuthenticationOpenIdClient')
|
8
|
-
super
|
7
|
+
super(401, message, name)
|
9
8
|
end
|
10
9
|
end
|
11
10
|
end
|
@@ -1,13 +1,9 @@
|
|
1
1
|
module ForestAdminAgent
|
2
2
|
module Http
|
3
3
|
module Exceptions
|
4
|
-
class NotFoundError <
|
5
|
-
|
6
|
-
|
7
|
-
def initialize(msg, name = 'NotFoundError')
|
8
|
-
super(msg)
|
9
|
-
@name = name
|
10
|
-
@status = 404
|
4
|
+
class NotFoundError < HttpException
|
5
|
+
def initialize(message, name = 'NotFoundError')
|
6
|
+
super(404, message, name)
|
11
7
|
end
|
12
8
|
end
|
13
9
|
end
|
@@ -42,9 +42,8 @@ module ForestAdminAgent
|
|
42
42
|
|
43
43
|
def handle_authentication_callback(args = {})
|
44
44
|
if args[:params].key?(:error)
|
45
|
-
raise AuthenticationOpenIdClient.new(args[:params][:
|
46
|
-
args[:params][:error]
|
47
|
-
args[:params][:error_description])
|
45
|
+
raise AuthenticationOpenIdClient.new(args[:params][:error_description] || args[:params][:error],
|
46
|
+
args[:params][:error])
|
48
47
|
end
|
49
48
|
|
50
49
|
if args.dig(:headers, 'action_dispatch.remote_ip')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_admin_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthieu
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-10-
|
12
|
+
date: 2025-10-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|