Hi Andrea,
thank you very much, it worked fine for my embedded Syncope.
I only had to add
@Override
public boolean isVisible() {
return availableRealms.stream().
anyMatch(availableRealm ->
realmTO.getFullPath().startsWith(availableRealm));
}
in RealmChoicePanel.java
Best regards,
Maria
Von: Andrea Patricelli [mailto:[email protected]]
Gesendet: Dienstag, 11. September 2018 09:41
An: [email protected]
Betreff: Re: AW: Syncope Console realms listing
Hi,
please take a look to the class at [1]. You should toggle visibility of the
component that displays the realm list to false instead of simply disabling
the component row.
N.B. In order to override classes you should use a Syncope archetype project
[2].
Best regards,
Andrea
[1]
https://github.com/apache/syncope/blob/2_1_X/client/console/src/main/java/or
g/apache/syncope/client/console/panels/RealmChoicePanel.java
[2] https://syncope.apache.org/docs/2.1/getting-started.html#create-project
Il 10/09/2018 11:24, Maria Barth ha scritto:
Hi Andrea,
thank you for the quick responce.
I am using the version 2.1.1.
Could you give me some hints about the console customization, nesseccary to
hide not allowed realms?
Best regards,
Maria
Von: Andrea Patricelli [mailto:[email protected]]
Gesendet: Montag, 10. September 2018 11:06
An: [email protected]
Betreff: Re: Syncope Console realms listing
Hi Maria,
Could you please specify which version of Syncope are you using?
The current implementation of the console shows all other realms, but
disables the ones on which the admin user does not have permission (you
should see a "not allowed" icon on realms different than "Firma1").
in order to hide not allowed realms you should make a customization to the
current console implementation.
HTH,
Andrea
Il 10/09/2018 10:23, Maria Barth ha scritto:
Hello,
my requirement is to have a user in Syncope, who is able to administrate
other users in the same realm, but who may not see the list of other realms.
Is it possible?
I have configured a role, with following entitlements on the realm:
"entitlements":[
"ACCESS_TOKEN_LIST",
"ANYTYPE_LIST",
"ANYTYPE_READ",
"ANYTYPECLASS_LIST",
"ANYTYPECLASS_READ",
"DOMAIN_READ",
"GROUP_DELETE",
"GROUP_UPDATE",
"GROUP_CREATE",
"GROUP_LIST",
"GROUP_READ",
"GROUP_SEARCH",
"MEMBERSHIP_DELETE",
"MEMBERSHIP_UPDATE",
"MEMBERSHIP_CREATE",
"MEMBERSHIP_LIST",
"MEMBERSHIP_READ",
"REALM_LIST",
"RELATIONSHIPTYPE_LIST",
"RELATIONSHIPTYPE_READ",
"ROLE_DELETE",
"ROLE_UPDATE",
"ROLE_CREATE",
"ROLE_LIST",
"ROLE_READ",
"SCHEMA_LIST",
"USER_SEARCH",
"USER_DELETE",
"USER_CREATE",
"USER_UPDATE",
"USER_READ"],
"realms":["/Firma1"],
But if the user having this role and being defined on the realm "/Firma1"
enters the "Realms" in the console, he is able to see the list of all
realms:
Thank you for your help and regards,
Maria Barth
Unsere neusten Aktionen rund um unsere Produkte finden Sie unter: News
<http://www.cad-schroer.ch/emailaction/> & Events
CAD Schroer GmbH
Geschaeftsfuehrer:
Tel.: +49 2841-9184-0
Fritz-Peters-Strasse 11
Michael Schroer
Fax: +49 2841-9184-44
47447 Moers
Thomas Schubert
E-Mail: [email protected]
Deutschland
Amtsgericht Kleve HRB 5339
Web: www.cad-schroer.de
--
Dott. Andrea Patricelli
Tel. +39 3204524292
Developer @ Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net
Apache Syncope PMC Member
--
Dott. Andrea Patricelli
Tel. +39 3204524292
Developer @ Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net
Apache Syncope PMC Member