audiences 1.5.0 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/audiences/contexts_controller.rb +8 -5
- data/app/controllers/audiences/scim_proxy_controller.rb +1 -1
- data/app/models/audiences/external_user.rb +2 -2
- data/app/models/audiences/users_search.rb +2 -2
- data/docs/CHANGELOG.md +8 -0
- data/lib/audiences/configuration.rb +7 -0
- data/lib/audiences/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: e3e108ec8748bbea76aff846fb5232ab13593d490088aae9b17a24ce560f39e4
|
4
|
+
data.tar.gz: 921b1c6811c056876b8947f8a3b10147dc065f60e3ef4645c1c8da76b6b51971
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6884ec82566eef0ebb1d9d24d3f7015b704da6a053a0f58690ab1c6b05c85aa73916fbf2a8c17cd2715cb73b3e82c855c27f630018561f17c916e33acf0cb3e
|
7
|
+
data.tar.gz: 4624020381b721223e7255da62502505bcc6816305ba3c4b8e8c92af611967004649f8aa424701870ae53e3463732f7ff215f24685c70ab6e5d7247bc4f3c385
|
@@ -17,7 +17,7 @@ module Audiences
|
|
17
17
|
limit: params[:limit],
|
18
18
|
offset: params[:offset])
|
19
19
|
|
20
|
-
render json: search
|
20
|
+
render json: search, only: Audiences.exposed_user_attributes
|
21
21
|
end
|
22
22
|
|
23
23
|
private
|
@@ -33,11 +33,14 @@ module Audiences
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def render_context(context)
|
36
|
-
|
37
|
-
only: %i[match_all
|
36
|
+
json_setting = {
|
37
|
+
only: %i[match_all],
|
38
38
|
methods: %i[count],
|
39
|
-
include: { criteria: { only: %i[id groups], methods: %i[count] } }
|
40
|
-
|
39
|
+
include: { criteria: { only: %i[id groups], methods: %i[count] } },
|
40
|
+
}
|
41
|
+
extra_users = context.extra_users.as_json(only: Audiences.exposed_user_attributes)
|
42
|
+
|
43
|
+
render json: { extra_users: extra_users, **context.as_json(json_setting) }
|
41
44
|
end
|
42
45
|
|
43
46
|
def context_params
|
@@ -7,7 +7,7 @@ module Audiences
|
|
7
7
|
.query(
|
8
8
|
filter: "displayName co \"#{params[:filter]}\"",
|
9
9
|
startIndex: params[:startIndex], count: params[:count],
|
10
|
-
attributes:
|
10
|
+
attributes: Audiences.exposed_user_attributes.join(",")
|
11
11
|
)
|
12
12
|
|
13
13
|
render json: resources, except: %w[schemas meta]
|
data/docs/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Unreleased
|
2
2
|
|
3
|
+
# Version 1.5.2 (2024-12-19)
|
4
|
+
|
5
|
+
- Filter sensitive user data out of user list response [#473](https://github.com/powerhome/audiences/pull/473)
|
6
|
+
|
7
|
+
# Version 1.5.1 (2024-12-12)
|
8
|
+
|
9
|
+
- Fix SCIM proxy attributes format [#462](https://github.com/powerhome/audiences/pull/462)
|
10
|
+
|
3
11
|
# Version 1.5.0 (2024-12-12)
|
4
12
|
|
5
13
|
- SCIM proxy will only return data used by the UI [#451](https://github.com/powerhome/audiences/pull/451)
|
@@ -5,6 +5,13 @@ module Audiences
|
|
5
5
|
|
6
6
|
# Configuration options
|
7
7
|
|
8
|
+
# These are the user attributes that will be exposed in the audiences endpoints.
|
9
|
+
# They're required by the UI to display the user information.
|
10
|
+
#
|
11
|
+
config_accessor :exposed_user_attributes do
|
12
|
+
%w[id externalId displayName photos]
|
13
|
+
end
|
14
|
+
|
8
15
|
#
|
9
16
|
# Authentication configuration. This defaults to true, meaning that the audiences
|
10
17
|
# endpoints are open to the public.
|
data/lib/audiences/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: audiences
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Palhares
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|