Skip to content

Commit 773f14c

Browse files
committed
fix: adjust attribute names consent plugin #159
1 parent 57e106f commit 773f14c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugins/client-authorizations/src/main/java/org/gluu/casa/plugins/consent/service/ClientAuthorizationsService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public Map<Client, Set<Scope>> getUserClientPermissions(String userId) {
4747
Set<String> scopeIds = authorizations.stream().map(ClientAuthorization::getScopes).flatMap(List::stream).collect(Collectors.toSet());
4848

4949
//Do the analog for scopes
50-
filters = scopeIds.stream().map(id -> Filter.createEqualityFilter("oxId", id))
50+
filters = scopeIds.stream().map(id -> Filter.createEqualityFilter("jansId", id))
5151
.collect(Collectors.toList()).toArray(new Filter[]{});
5252
List<Scope> scopes = persistenceService.find(Scope.class, persistenceService.getScopesDn(), Filter.createORFilter(filters));
5353

plugins/client-authorizations/src/main/resources/assets/index.zul

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444
data-parent="#accordion">
4545
<div class="card-body">
4646
<dl class="mb1">
47-
<z:div class="flex flex-wrap" visible="@load(not empty each.key.oxAuthClientURI)">
47+
<z:div class="flex flex-wrap" visible="@load(not empty each.key.jansClntURI)">
4848
<dt class="w4">${labels.clients.authorized.homepage}</dt>
4949
<dd>
50-
<h:a href="@load(each.key.oxAuthClientURI)" target="_blank">${each.key.oxAuthClientURI}</h:a>
50+
<h:a href="@load(each.key.jansClntURI)" target="_blank">${each.key.jansClntURI}</h:a>
5151
</dd>
5252
</z:div>
5353
<z:div class="flex flex-wrap" visible="@load(not empty vm.getAssociatedPeopleAsCSV(each.key))">

0 commit comments

Comments
 (0)