Hi,

Yes,  the REST API supports this.  Assuming you have HTTP basic auth
enabled and the authentication provider is called passwordFile (as it
is in the box), POST to the authentication provide like this:

curl --user admin 'http://localhost:8080/api/latest/user/passwordFile'
-X POST -d '{"name":"mynewuser1","password":"secret"}'

This will work from all authentication providers that are backed by a
local files (i.e. those implementation that implement
PasswordCredentialManagingAuthenticationProvider).  It won't work from
providers such as LDAP.

There is on-line API documentation growing beneath /apidocs

Kind regards Keith


On 15 January 2016 at 14:26, [email protected] <[email protected]> wrote:
> How is it possible to add a user dynamically without having to restart the
> broker?
> Probably the REST API could help me here. However, I cannot find any
> information how such a call would look like.
> Would be glad if anyone could point me to the right direction.
>
>
>
>
> --
> View this message in context: 
> http://qpid.2158936.n2.nabble.com/Java-broker-Dynamically-add-user-tp7636651.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to