----- Messaggio originale ----- Da: "Matteo Di Carlo" <[email protected]> A: [email protected] Inviato: Mercoledì, 28 settembre 2016 17:11:19 Oggetto: Re: self registration - realm
----- Messaggio originale ----- Da: "Pulivarthi, Sitaram (EXT - IN)" <[email protected]> A: [email protected] Inviato: Mercoledì, 28 settembre 2016 14:41:45 Oggetto: self registration - realm Hi, I am exploring the option of assigning the realm to the syncope end-user via self registration. Found that "Realm" field has been disabled under "Groups" tab of self registration. Kindly let us know the reason behind disabling the "Realm" field, Also please let us know how to enable this "Realm" field. Thanks Sitaram Hi Sitaram, Realm field is actually disabled, and stubbed to allow a free customization of the enduser, particularly to let you decide when to use realms or not. As you can see in [1] (SYNCOPE-952), we need first to resolve the issue to retrieve all existing realms. Anyway javascript side you can enable the realm choice through the following 2 steps: -First, in user-groups.html switch ng-disabled of the realm label to "true" . (line 32) -Then, in UserController.js replace entirely the initRealms() method with the following one: var initRealms = function () { RealmService.getAvailableRealms().then(function (response) { for (var i in response) { $scope.availableRealms.push(response[i].name); } }); }; As I specified you will not be able to retrieve all existing realms. [1] https://issues.apache.org/jira/browse/SYNCOPE-952 So, since the realm management is mocked javascript side, initRealms() will not work till SYNCOPE-952 isn't resolved. In the meantime you could simulate the service passing to $scope.availableRealms a static list of realms. -- Many thanks, Matteo Di Carlo.
