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 currently enabled.  Please try again later". How can I
enable registering new users?

Thank You.

On Mon, Jul 9, 2018 at 7:41 AM, Eric Norman <[email protected]> wrote:

> 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 wouldn't be able to easily guess and use to login.
>
>
> Regards,
> Eric
>
> On Sun, Jul 8, 2018 at 9:03 AM, Hasini Witharana <[email protected]>
> wrote:
>
> > 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
> > provided.
> >
> > Now I need to store the successfully authenticated users using Jackrabbit
> > API. To create a user using this API we need username and password. Is
> > there any way to create a user without providing a password?
> >
> > Thank You.
> > --
> > *Hasini Witharana*
> > Undergraduate | Department of Computer Science and Engineering
> > University of Moratuwa
> > Linkedin <https://www.linkedin.com/in/hasini-witharana-185785109/>
> >
>



-- 
*Hasini Witharana*
Undergraduate | Department of Computer Science and Engineering
University of Moratuwa
Linkedin <https://www.linkedin.com/in/hasini-witharana-185785109/>

Reply via email to