We use proprietary and third party´s cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy
Ask Your Question
0

Programmatically create Keyrock users for WStore (and WMarket, etc...)

asked 2016-03-23 18:35:38 +0100

Eddy gravatar image

Hi,

I'd like to programmatically create user accounts from our own app/api and got to the point I can indeed add users to my local (Fiware forked) keystone instance. Unfortunately these users remain useless because they get automatically logged out the moment they are successfully logged in.

Can anyone let me know what are the minimum user account properties needed to successfully login a user to WStore?

TIA, Edoardo

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2016-03-29 10:39:35 +0100

amagan gravatar image

Sorry, we do not understand your questions. Where your users get automatically logged out?

Any valid user in Keyrock is valid in WStore.

edit flag offensive delete link more

Comments

Hi, let me explain: if I POST a new user to Keyrock with just a username and password, it won't allow me to consume the WStore API or login. If you create an account through the Keyrock UI the users will have other properties set so I was wondering which of these is making the difference.

Eddy gravatar imageEddy ( 2016-03-29 15:28:26 +0100 )edit

I think that the e-mail is also required to create a user in KeyRock. Can you create users in KeyRock without introducing its e-mail account?

amagan gravatar imageamagan ( 2016-03-29 17:15:13 +0100 )edit

curl -X POST -H "Content-Type: application/json" -H "X-Auth-Token: 039eca7f72da471a889c217deff5d433" -d '{ "user" : { "name" : "ladida","password" : "ladida2016" }' works a charm. The user will not login because it doesn't belong to any org though.

Eddy gravatar imageEddy ( 2016-03-29 17:39:11 +0100 )edit

I guess that you are using this request to create a new user in KeyRock. As I stated before, WStore require users coming from KeyRock to have a defined e-mail account. Otherwise, it will fail.

amagan gravatar imageamagan ( 2016-03-30 10:04:50 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-03-23 18:35:38 +0100

Seen: 6,576 times

Last updated: Mar 29 '16