@@ 47-53 (lines=7) @@ | ||
44 | { |
|
45 | $response = $this->createResponse(); |
|
46 | ||
47 | if (!$this->getHttpRequest()->isMethod(IRequest::POST)) { |
|
48 | $body = $this->createStream(); |
|
49 | $body->write('Method not allowed'); |
|
50 | /** @var ApplicationPsr7ResponseInterface $response */ |
|
51 | $response = $response->withStatus(IResponse::S405_METHOD_NOT_ALLOWED)->withBody($body); |
|
52 | $this->sendResponse($response); |
|
53 | } |
|
54 | ||
55 | try { |
|
56 | /** @var ApplicationPsr7ResponseInterface $response */ |
|
@@ 84-90 (lines=7) @@ | ||
81 | { |
|
82 | $response = $this->createResponse(); |
|
83 | ||
84 | if (!$this->getHttpRequest()->isMethod(IRequest::GET)) { |
|
85 | $body = $this->createStream(); |
|
86 | $body->write('Method not allowed'); |
|
87 | /** @var ApplicationPsr7ResponseInterface $response */ |
|
88 | $response = $response->withStatus(IResponse::S405_METHOD_NOT_ALLOWED)->withBody($body); |
|
89 | $this->sendResponse($response); |
|
90 | } |
|
91 | ||
92 | try { |
|
93 | $this->getSession(self::SESSION_NAMESPACE)->authorizationRequest = $this->authorizationRequestSerializer->serialize( |