Requisition API is now secured

Hi everyone,

Recently, requisition has been integrated with auth service, so you will have to authenticate in order to access the API. The simplest way for development would be to use default admin account and password grant.
To obtain a token, make a request to the endpoint at /oauth/token. The client credentials must be included in Authorization header.

POST http://localhost:8081/oauth/token?grant_type=password&username=admin&password=password
Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW

Basic Authentication
Username
trusted-client
Password
secret

Parameters
grant_type
Authorization grant type.
username
The resource owner username.
password
The resource owner password.

Response:

{“access_token”:“151a02ed-b6b4-4233-9566-cac2b7a1aec9”,“token_type”:“bearer”,“expires_in”:42509,“scope”:“read write”}

Access the protected resources by appending access_token parameter to the request:

http://localhost:8080/api/foos/count?access_token=**151a02ed-b6b4-4233-9566-cac2b7a1aec9**

These instructions have also been included in README

Best Regards,
Jakub