Re: [Dev][GSoc] How to create a user without password using Jackrabbit API

2018-07-17 Thread Robert Munteanu
On Tue, 2018-07-17 at 15:01 +0530, Hasini Witharana wrote: > Hi Robert, > > When I used the admin session I am getting an error like below. How > to > overcome this issue? > > "Bundle org.apache.sling.jcr.api is NOT whitelisted" You should add this bundle to the LoginAdminWhitelist

Re: [Dev][GSoc] How to create a user without password using Jackrabbit API

2018-07-17 Thread Hasini Witharana
Hi Robert, When I used the admin session I am getting an error like below. How to overcome this issue? "Bundle org.apache.sling.jcr.api is NOT whitelisted" Thank You. On Tue, Jul 17, 2018 at 1:19 AM, Robert Munteanu wrote: > On Tue, 2018-07-17 at 00:40 +0530, Hasini Witharana wrote: > > How

Re: [Dev][GSoc] How to create a user without password using Jackrabbit API

2018-07-16 Thread Robert Munteanu
On Tue, 2018-07-17 at 00:40 +0530, Hasini Witharana wrote: > How to get the sling admin session from Sling Repository? > > I am using loginService(String s1, String s2) method and what should > be s1 > and s2? You should be using loginAdminstrative(null). Although the method is deprecated now,

Re: [Dev][GSoc] How to create a user without password using Jackrabbit API

2018-07-16 Thread Hasini Witharana
Hi all, How to get the sling admin session from Sling Repository? I am using loginService(String s1, String s2) method and what should be s1 and s2? Thank You. On Sat, Jul 14, 2018 at 1:35 AM, Eric Norman wrote: > Yes, self registration by an anonymous user is disabled by default. This >

Re: [Dev][GSoc] How to create a user without password using Jackrabbit API

2018-07-13 Thread Eric Norman
Yes, self registration by an anonymous user is disabled by default. This self-registration configuration can be changed by navigating to http://localhost:8080/system/console/configMgr and modify the configuration of the "Apache Sling Create User" component. Or as Robert stated, the admin user

Re: [Dev][GSoc] How to create a user without password using Jackrabbit API

2018-07-12 Thread Robert Munteanu
On Thu, 2018-07-12 at 13:53 +0530, Hasini Witharana wrote: > Hi all, > > I tried the below curl command to create a user. > > curl -F:name=myuser -Fpwd=password -FpwdConfirm=password > -Fanyproperty1=value1 \ > http://localhost:8080/system/userManager/user.create.html > > I got an error

Re: [Dev][GSoc] How to create a user without password using Jackrabbit API

2018-07-12 Thread Hasini Witharana
Hi all, I tried the below curl command to create a user. curl -F:name=myuser -Fpwd=password -FpwdConfirm=password -Fanyproperty1=value1 \ http://localhost:8080/system/userManager/user.create.html I got an error saying "javax.jcr.RepositoryException: Sorry, registration of new users is not

Re: [Dev][GSoc] How to create a user without password using Jackrabbit API

2018-07-08 Thread Eric Norman
If I am reading the code correctly, it looks like both the jackrabbit 2.x and oak implementation of UserManager API allows you to pass null as the password and it doesn't attempt to store a password in that case. Your other option would be just to generate some random password value that the user

[Dev][GSoc] How to create a user without password using Jackrabbit API

2018-07-08 Thread Hasini Witharana
Hi all, Currently I am working on OpenID Connect flow. Now the implemented handler is capable of authenticating and authorizing valid users by an OpenID Connect Provider(OP). OP will provide details of user such as username, email, first name family name and etc. But the password will not be