Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS amplify auth How to remove redirect uri

How can I remove a redirect uri using amplify.

Running amplify auth update gives no option for removing a redirect uri, there is only a 'add/edit' option. I have tried to look through the documentation but with no success.

like image 494
Axel Olivecrona Avatar asked Nov 14 '19 08:11

Axel Olivecrona


People also ask

How do you remove Auth AWS amplify?

In order to unlink your existing Cognito resource run amplify remove auth . This will only unlink the Cognito resource referenced from the Amplify project. It will not delete the Cognito resource itself. Run amplify push to complete the unlink procedure.

What is redirect signin URI?

A redirect URI, or reply URL, is the location where the authorization server sends the user once the app has been successfully authorized and granted an authorization code or access token.

How does amplify auth work?

Amplify Auth lets you quickly set up secure authentication flows with a fully-managed user directory. Control what users have access to in your mobile and web apps with Amplify Auth's built-in authorization capabilities.

How do I create clean URLs in amplify console?

The Amplify Console automatically creates clean URLs by adding a trailing slash when required. The table below highlights different scenarios: You can use the following example code to redirect paths in a folder structure to a matching structure in another folder.

How do I use the built-in authorization capabilities of amplify Auth?

Control what users have access to in your mobile and web apps with Amplify Auth's built-in authorization capabilities. Click options together or use guided commands to configure email and social sign-up/sign-in, forgot password, and multi-factor auth workflows.

How do I bulk edit redirects in a JSON editor?

To bulk edit redirects in a JSON editor, choose Open text editor . Redirects are executed from the top of the list down. Make sure that your ordering has the effect you intend.

What are redirects and why should I use them?

Common reasons for using redirects include: to customize the appearance of a URL, to avoid broken links, to move the hosting location of an app or site without changing its address, and to change a requested URL to the form needed by a web app. There are several types of redirects that support specific scenarios.


1 Answers

While it doesn't seem to be possible to remove redirects using the amplify CLI, you can do it manually by editing the (multiple) parameters.json files that amplify creates. Search for the CallbackURLs and LogoutURLs fields in the oAuthMetadata and you can manually delete the sign in/sign out redirects that you no longer want.

like image 100
Sam Avatar answered Sep 29 '22 01:09

Sam