Using Power Automate; receiving the OAuth error "The redirect_uri parameter does not match a valid url for the application"

Hi @Andrew-asana I am receiving the following error invalid_request: The redirect_uri parameter does not match a valid url for the application
Can you please advise

1 Like

Hi @hamaiza101 and welcome to the forum,

FYI I moved your post to a new thread so as to specifically address this error scenario.

What this error means is that in your OAuth authorization request, you’ve sent a redirect_uri value which is not listed in the “Redirect URLs” section of your app’s OAuth page in your developer console.

To illustrate: let’s say this is the OAuth authorization request that you’re sending to https://app.asana.com/-/oauth_authorize:

<a
  href="https://app.asana.com/-/oauth_authorize
?client_id=753482910
&redirect_uri=https://myapp.com/auth_destination
&response_type=code
&state=thisIsARandomString
&code_challenge_method=S256
&code_challenge=671608a33392cee13585063953a86d396dffd15222d83ef958f43a2804ac7fb2
&scope=projects:read tasks:read tasks:write tasks:delete"
>
  Authenticate with Asana
</a>

Your redirect_uri of https://myapp.com/auth_destination must be specified here in your developer console:

Hi @Phil_Seeman we are using Asana through power automate the issue is when we go to create a connection we get this error. The issue is with new users and not old

Ah, OK, that’s important information. I updated the title of your post to include that info. I’m unfamiliar with the specifics of that integration, can’t help you there. Others here have used it and might know what’s up.

I have also started to have this issue with the built in Microsoft PowerAutomate connector in the past couple days. I am able to create an ‘App’ in Asana that can pass the auth with a custom Api connection. This is just an issue with the built in connector for me

I’m having the same problem when trying to build a workflow in Teams.

1 Like