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