You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@syncope.apache.org by "Pulivarthi, Sitaram (EXT - IN)" <si...@nokia.com> on 2016/09/28 12:41:45 UTC

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

Re: self registration - realm

Posted by Francesco Chicchiriccò <il...@apache.org>.
For the records, here's how the conversation should have appeared.
HTH
Regards.

On 28/09/2016 17:26, Matteo Di Carlo wrote:
>>> 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.
>>
>> 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.
>
> 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.
>
>> [1] https://issues.apache.org/jira/browse/SYNCOPE-952

-- 
Francesco Chicchiricc�

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


Re: self registration - realm

Posted by Matteo Di Carlo <ma...@tirasa.net>.

----- Messaggio originale -----
Da: "Matteo Di Carlo" <ma...@tirasa.net>
A: user@syncope.apache.org
Inviato: Mercoledì, 28 settembre 2016 17:11:19
Oggetto: Re: self registration - realm

----- Messaggio originale -----
Da: "Pulivarthi, Sitaram (EXT - IN)" <si...@nokia.com>
A: user@syncope.apache.org
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.





Re: self registration - realm

Posted by Matteo Di Carlo <ma...@tirasa.net>.

----- Messaggio originale -----
Da: "Pulivarthi, Sitaram (EXT - IN)" <si...@nokia.com>
A: user@syncope.apache.org
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
--
Many thanks,
Matteo Di Carlo.