sonata-nfv / son-gkeeper

SONATA's Service Platform Gatekeeper
http://www.sonata-nfv.eu
Apache License 2.0
2 stars 18 forks source link

Get/update userinfo #760

Closed pkarkazis closed 7 years ago

pkarkazis commented 7 years ago

Hi @jbonnet, I tried to retrieve user information (https://sp.int3.sonata-nfv.eu/api/v2/userinfo ) and got the following error:

Response: { "error": { "code": 404, "message": "/api/v2/userinfo not supported" } }

also, we need a PUT method for the same api in order to be able make changes on user information (ex change email address etc)

jbonnet commented 7 years ago

Hi, @pkarkazis The endpoint is GET .../api/v2/users, but currently is returning the list of users registered. If you agree, I'll keep that for admin users, but return just the info belonging to the user that owns the authorization token for developer or customer kinds of users.

Is that ok?

jbonnet commented 7 years ago

One small detail, @pkarkazis Do you plan to always send the GK all the fields (including password), or should the GK skip this validation?

pkarkazis commented 7 years ago

@jbonnet If we want to provide an update mechanism for user information through gui (change contact email, password etc) we must send these fields.

jbonnet commented 7 years ago

Closed by PR #771

jbonnet commented 7 years ago

Hey, @pkarkazis, @mzacharioudakis Please test both GET and PUT. Thanks

Closed by PR #772