If the Hello Wallet app redirects with the wildcard_console parameter and the redirect URI is not configured, we need to display a page prompting the user to configure the redirect URI in the Hello Wallet app.
- The page has already been created in
DefaultPageRenderer, but it has not been added to the route.
- This omission causes an error when the user is redirected with
wildcard_console and the redirect URI is missing.
To handle this scenario, the following code logic should be implemented in HelloClient:
if ($this->helloRequest->fetch('wildcard_console') && !$this->helloRequest->fetch('redirect_uri')) {
return $this->helloResponse->render($this->pageRenderer->renderMissingRedirectUriPage(
// Pass any required parameters here
));
}
Tasks:
- Add the missing route for the page in
DefaultPageRenderer.
- Implement the logic in
HelloClient to check for wildcard_console and missing redirect_uri, then render the "missing redirect URI" page.
- Write test cases to validate the functionality.