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.
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.
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.
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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With