Skip to content

Prompt User to Configure Redirect URI in Hello Wallet App if Redirected with wildcard_console #24

@UnnikrishnanBhargavakurup

Description

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:

  1. Add the missing route for the page in DefaultPageRenderer.
  2. Implement the logic in HelloClient to check for wildcard_console and missing redirect_uri, then render the "missing redirect URI" page.
  3. Write test cases to validate the functionality.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions