Throw a NotFoundHttpException when a resource cannot be found in class
ResourceController.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Return the HTTP status code of the response in the actions of class
ClientController.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Remove unused code.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Handle Buzz exceptions in ClientController.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Increase the connection timeout of the Buzz service.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Use method ClientController::sendAccessRequest in order to send request for
resource access to the Resource Server.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Normalize responses to resource access requests to Symfony Response objects.

To that end method ClientController::transformBuzzToSymfonyResponse was added.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Remove unused code.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Normalize the handling of invalid resource access requests in the Resource
Server.

A response to an invalid request is created by the
ResourceController::createInvalidRequestResponse method.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Copy class RequestGenerator to DemoBundle.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Introduce the OauthMediator class.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Add the ResourceOwner entity.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Relate the ResourceOwner entity to the AuthorizationCodeProfile.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Save currently logged-in ResourceOwner along with the generated "authorization
code".

In order for this to be possible, the Resource Server and the OAuth Server will
share the same "security context" from now on.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Add method AuthorizationController::tokenInfoAction.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Move the route "/client-app/demo1" to the DemoBundle.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Display the authorization errors to the "demo_1.html.twig" template.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Enable the OauthMediator to send requests for "authorization codes" and "access
tokens".

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Add method AccessTokenResponse::fromJsonResponse.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>
Ask the OauthMediator for an access token before sending the request for a
resource in method ClientController::imageAction.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>