File tree 3 files changed +9
-6
lines changed
src/main/java/info/unterrainer/commons/httpserver
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 17
17
18
18
<modelVersion >4.0.0</modelVersion >
19
19
<artifactId >http-server</artifactId >
20
- <version >0.2.14 </version >
20
+ <version >0.2.15 </version >
21
21
<name >HttpServer</name >
22
22
<packaging >jar</packaging >
23
23
Original file line number Diff line number Diff line change @@ -194,7 +194,8 @@ private TokenVerifier<AccessToken> persistUserInfoInContext(final Context ctx) {
194
194
.email (token .getEmail ())
195
195
.emailVerified (token .getEmailVerified ())
196
196
.realmRoles (token .getRealmAccess ().getRoles ())
197
- .tenant (readTenants )
197
+ .readTenants (readTenants )
198
+ .writeTenants (writeTenants )
198
199
.clientRoles (clientRoles )
199
200
.isActive (token .isActive ())
200
201
.isBearer (token .getType ().equalsIgnoreCase ("bearer" ))
Original file line number Diff line number Diff line change @@ -23,11 +23,13 @@ public class UserDataJson {
23
23
private Set <String > realmRoles ;
24
24
private Set <String > clientRoles ;
25
25
/**
26
- * Is the custom Keycloak-attribute 'tenant' that has to be set under
27
- * user/attributes within Keycloak and then mapped using an AttributeMapper
28
- * within Keycloak as well. Is a comma-separated list of tenant-IDs.
26
+ * Custom Keycloak-attributes 'tenant_read' and 'tenant_write' that have to be
27
+ * set under user/attributes within Keycloak and then mapped using an
28
+ * AttributeMapper within Keycloak as well. Are comma-separated lists of
29
+ * tenant-IDs.
29
30
*/
30
- private String tenant ;
31
+ private String readTenants ;
32
+ private String writeTenants ;
31
33
32
34
private boolean isActive ;
33
35
private boolean isBearer ;
You can’t perform that action at this time.
0 commit comments