[Fiware-lab-help] Reporting Fiware Lab OAUTH2 API issues

gabriele.cerfoglio at martel-innovate.com gabriele.cerfoglio at martel-innovate.com
Wed Feb 1 13:59:28 CET 2017


Greetings

I'm sending this email to report a few issues I've come across while attempting to use Fiware lab as a OAUTH2 provider. This is following up from a previous email I've sent, after some additional testing on my end:

- The API endpoint /user described in the doc http://fiware-idm.readthedocs.io/en/latest/oauth2.html  never seems to return anything under the organisations field. Even if the app that provided the token has organisations allowed, and my user is a member of said organisation, the organisations field always returns an empty array.

- The API endpoint /user seems to have an issue where it seems to treat any endpoint that begins with "/user" the same way, meaning that if I try the endpoint /userbhjsjhjhsfj it would still end up giving me the /user endpoint with no errors reported, as if it's being resolved as a regex that goes /user.* by the server. This causes conflicts with this other documented API endpoint /users/:id http://fiware-idm.readthedocs.io/en/latest/user_guide.html#get-a-single-user  which should in theory allow me to specify a user to retrieve info about without the need of an access token.

- Not exactly an issue to report, but it would be immensely convenient if, similar to Github's OAUTH, there was a /orgs endpoint to retrieve organisations directly rather than individual users.

Best regards

Gabriele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20170201/0ac63a99/attachment.html>


More information about the Fiware-lab-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy