forest_admin_agent 1.0.0.pre.beta.58 → 1.0.0.pre.beta.59
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/forest_admin_agent/builder/agent_factory.rb +4 -0
- data/lib/forest_admin_agent/http/router.rb +1 -0
- data/lib/forest_admin_agent/routes/security/scope_invalidation.rb +28 -0
- data/lib/forest_admin_agent/utils/schema/schema_emitter.rb +1 -1
- data/lib/forest_admin_agent/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad27eb8ba35f3292c6216af7d415129b1ce822f6e1b759045efbccc11b89029f
|
4
|
+
data.tar.gz: 52fa9bacad9adafffa0d31398503191e94b7973c0138647cd0b1b78dc73218cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48849106eeef0a28e24ed80d0351893f9fe9210e0d0c3c38294efb37c1e019291097323dff64f37ab9d4e606d961c00843c929e72afd177715b644fad213974a
|
7
|
+
data.tar.gz: 8e4177bd4822369f2dcc28cf0ca12a1a04a0c6bb27b8d91f21d181c746aa267d2f89a4f4c1bbe31c6a6f4cb4b597fd34a6db64090c3633981555b9665b16e6ac
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module ForestAdminAgent
|
2
|
+
module Routes
|
3
|
+
module Security
|
4
|
+
class ScopeInvalidation < AbstractRoute
|
5
|
+
include ForestAdminAgent::Builder
|
6
|
+
include ForestAdminAgent::Services
|
7
|
+
def setup_routes
|
8
|
+
add_route(
|
9
|
+
'forest_scope_invalidation',
|
10
|
+
'POST',
|
11
|
+
'/scope-cache-invalidation',
|
12
|
+
->(args) { handle_request(args) }
|
13
|
+
)
|
14
|
+
|
15
|
+
self
|
16
|
+
end
|
17
|
+
|
18
|
+
def handle_request(args)
|
19
|
+
# Check if user is logged
|
20
|
+
Utils::QueryStringParser.parse_caller(args)
|
21
|
+
Permissions.invalidate_cache('forest.scopes')
|
22
|
+
|
23
|
+
{ content: nil, status: 204 }
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
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.0.0.pre.beta.
|
4
|
+
version: 1.0.0.pre.beta.59
|
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: 2024-
|
12
|
+
date: 2024-07-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -262,6 +262,7 @@ files:
|
|
262
262
|
- lib/forest_admin_agent/routes/resources/store.rb
|
263
263
|
- lib/forest_admin_agent/routes/resources/update.rb
|
264
264
|
- lib/forest_admin_agent/routes/security/authentication.rb
|
265
|
+
- lib/forest_admin_agent/routes/security/scope_invalidation.rb
|
265
266
|
- lib/forest_admin_agent/routes/system/health_check.rb
|
266
267
|
- lib/forest_admin_agent/serializer/forest_chart_serializer.rb
|
267
268
|
- lib/forest_admin_agent/serializer/forest_serializer.rb
|