6.3.RC1 - Login with new REST features

Hi,

a few days ago, i stumbled upon the new API endpoints for queries and Entities (EntitiesController) etc at the github repository. Unfortunately i could not get a valid login. I tried to use the “traditional” login method: login?u=admin&p=admin and use the result for: app/rest/v2/entities/example$customer?s=UUID. This results in something like this:

{
  "error": "unauthorized",
  "error_description": "An Authentication object was not found in the SecurityContext"
}

Do i have to use the new OAuth token style for login in order to use the new REST features?
Btw. is there any reason this does not get mentioned in the 6.3 Changelog?

Bye,
Mario

Hi Mario,
Yes, you are right, the new REST API uses OAuth2 for authentication. It is not in the changelog because of the missing documentation. We will write it soon.

Hi Max,

thanks for the hint. I should probably just wait for the docs on how to do the login. Since OAuth(2) is one thing i didn’t really get my head around - i’m really interested in the docs to get an understanding what “supporting OAuth” means in practical terms…

Bye,
Mario

Hi Mario,
The documentation is available now by the URLs: [url=]https://doc.cuba-platform.com/manual-6.3/rest_api_v2.html[/url] and [url=]http://files.cuba-platform.com/swagger/[/url]