masks 0.3.0 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/builds/masks/application.css +1 -1
- data/app/assets/builds/masks/application.js +2101 -761
- data/app/assets/builds/masks/application.js.map +3 -3
- data/lib/masks/version.rb +1 -1
- data/lib/tasks/masks_tasks.rake +3 -2
- data/masks.json +4 -1
- metadata +4 -4
data/lib/masks/version.rb
CHANGED
data/lib/tasks/masks_tasks.rake
CHANGED
@@ -37,8 +37,9 @@ namespace :masks do
|
|
37
37
|
exit 1
|
38
38
|
end
|
39
39
|
|
40
|
+
scopes = args[:scopes].split(';')
|
40
41
|
access = cli_access("actor.scopes", as: args[:actor])
|
41
|
-
access&.assign_scopes(
|
42
|
+
access&.assign_scopes(scopes)
|
42
43
|
|
43
44
|
if !access
|
44
45
|
puts "could not find actor..."
|
@@ -46,7 +47,7 @@ namespace :masks do
|
|
46
47
|
puts "failed to assign scopes to '#{access.actor.nickname}'"
|
47
48
|
puts "error: #{access.actor.errors.full_messages.join(", ")}"
|
48
49
|
else
|
49
|
-
puts "assigned scopes to '#{access.actor.nickname}'"
|
50
|
+
puts "assigned scopes '#{scopes.join(', ')}' to '#{access.actor.nickname}'"
|
50
51
|
end
|
51
52
|
end
|
52
53
|
|
data/masks.json
CHANGED
@@ -148,7 +148,7 @@
|
|
148
148
|
"request": {
|
149
149
|
"path": ["/actors", "/actors/*"]
|
150
150
|
},
|
151
|
-
"fail":
|
151
|
+
"fail": "/session"
|
152
152
|
},
|
153
153
|
{
|
154
154
|
"type": "session",
|
@@ -167,6 +167,9 @@
|
|
167
167
|
},
|
168
168
|
{
|
169
169
|
"access": "actor.password"
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"access": "actor.scopes"
|
170
173
|
}
|
171
174
|
],
|
172
175
|
"types": {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: masks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- geiger-to
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: alba
|
@@ -255,7 +255,7 @@ dependencies:
|
|
255
255
|
- !ruby/object:Gem::Version
|
256
256
|
version: '0'
|
257
257
|
description: masks is a ruby library and rails engine that adds simple, extensible
|
258
|
-
auth to most applications.
|
258
|
+
auth to most applications. DO NOT USE
|
259
259
|
email:
|
260
260
|
- git@geiger.to
|
261
261
|
executables: []
|
@@ -409,7 +409,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
409
409
|
- !ruby/object:Gem::Version
|
410
410
|
version: '0'
|
411
411
|
requirements: []
|
412
|
-
rubygems_version: 3.3
|
412
|
+
rubygems_version: 3.5.3
|
413
413
|
signing_key:
|
414
414
|
specification_version: 4
|
415
415
|
summary: mask ruby applications with auth
|