# Ordering of redirect and consent

**URL:** <https://community.auth0.com/t/ordering-of-redirect-and-consent/38328>\
**Category:** Get Help\
**Tags:** rules, redirect, redirect-rules, auth0\
**Created:** [February 23, 2020, 3:55pm UTC](https://community.auth0.com/t/ordering-of-redirect-and-consent/38328 "2020-02-23T15:55:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielharvey](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/danielharvey/32/19281_2.png) [@danielharvey](https://community.auth0.com/u/danielharvey)\
**Post date:** [February 23, 2020, 3:55pm UTC](https://community.auth0.com/t/ordering-of-redirect-and-consent/38328/1 "2020-02-23T15:55:55Z")

</div>

Hi,

Using rules, It appears like the “context.redirect” occurs before user consent is obtained (when it is required).

Is there a way to control this ordering?

Thanks,  
Daniel

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [February 24, 2020, 5:55pm UTC](https://community.auth0.com/t/ordering-of-redirect-and-consent/38328/3 "2020-02-24T17:55:18Z")

</div>

Hi (again) @danielharvey!

Is this with a first party application? If so, you may be encountering the consent page because you are developing on localhost. This can be avoided by following this doc:

> **[User Consent and Third-Party Applications](https://auth0.com/docs/get-started/applications/confidential-and-public-applications/user-consent-and-third-party-applications)**
>
> Learn how to decouple APIs from applications that consume them and define third-party apps that you don't control or may not trust.

Hope this helps,  
Dan

---

<div class="post-metadata">

**Author:** ![danielharvey](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/danielharvey/32/19281_2.png) [@danielharvey](https://community.auth0.com/u/danielharvey)\
**Post date:** [February 26, 2020, 11:55am UTC](https://community.auth0.com/t/ordering-of-redirect-and-consent/38328/4 "2020-02-26T11:55:33Z")

</div>

@dan.woda, thanks for the feedback. I’ve read up on third party apps, consent etc.

I’m happy with consent (and want it to occur), but when using the redirect capability of rules, I would like the redirect to occur _ **after** _ application consent has been granted by the user rather than _ **before** _.

I can see use cases for both. Shouldn’t this be configurable? Is it?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [February 27, 2020, 6:33pm UTC](https://community.auth0.com/t/ordering-of-redirect-and-consent/38328/5 "2020-02-27T18:33:10Z")

</div>

I see. I can’t find any guidance on this, let me reach out to the team and see if it would be possible.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [March 12, 2020, 10:33pm UTC](https://community.auth0.com/t/ordering-of-redirect-and-consent/38328/6 "2020-03-12T22:33:10Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
