@@ 47-51 (lines=5) @@ | ||
44 | */ |
|
45 | public function actionAccessToken() |
|
46 | { |
|
47 | if (!$this->getHttpRequest()->isMethod(IRequest::POST)) { |
|
48 | $body = $this->createStream(); |
|
49 | $body->write('Method not allowed'); |
|
50 | $this->sendResponse($this->createResponse()->withStatus(IResponse::S405_METHOD_NOT_ALLOWED)->withBody($body)); |
|
51 | } |
|
52 | ||
53 | $response = $this->createResponse(); |
|
54 | try { |
|
@@ 78-82 (lines=5) @@ | ||
75 | */ |
|
76 | public function actionAuthorize() |
|
77 | { |
|
78 | if (!$this->getHttpRequest()->isMethod(IRequest::GET)) { |
|
79 | $body = $this->createStream(); |
|
80 | $body->write('Method not allowed'); |
|
81 | $this->sendResponse($this->createResponse()->withStatus(IResponse::S405_METHOD_NOT_ALLOWED)->withBody($body)); |
|
82 | } |
|
83 | ||
84 | $response = $this->createResponse(); |
|
85 | try { |