Skip to content

Commit

Permalink
FRW-1928 Fixed response code for OAuth token creation endpoint. (#4)
Browse files Browse the repository at this point in the history
FRW-1928 Fixed response code for OAuth token creation endpoint.
  • Loading branch information
yaroslav-spryker authored May 23, 2023
1 parent 288dcc5 commit df2e064
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
level: 7
level: 8
bootstrapFiles:
- tests/bootstrap.php
checkGenericClassInNonGenericObjectType: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ public function postAction(

$oauthResponseTransfer = $this->getFactory()->getAuthorizationPickingAppBackendApiFacade()->authorize($oauthRequestTransfer);

return $this->mapAuthenticationAttributesToGlueResponseTransfer($oauthResponseTransfer);
$glueResponseTransfer = $this->mapAuthenticationAttributesToGlueResponseTransfer($oauthResponseTransfer);
if (!$glueResponseTransfer->getHttpStatus()) {
$glueResponseTransfer->setHttpStatus(Response::HTTP_OK);
}

return $glueResponseTransfer;
}

/**
Expand Down

0 comments on commit df2e064

Please sign in to comment.