# Invite Link social connection

**URL:** <https://community.auth0.com/t/invite-link-social-connection/52092>\
**Category:** Get Help\
**Tags:** api, signup, social-connections, login\
**Created:** [October 23, 2020, 9:34pm UTC](https://community.auth0.com/t/invite-link-social-connection/52092 "2020-10-23T21:34:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gravypower](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gravypower/32/25056_2.png) [@gravypower](https://community.auth0.com/u/gravypower)\
**Post date:** [October 23, 2020, 9:34pm UTC](https://community.auth0.com/t/invite-link-social-connection/52092/1 "2020-10-23T21:34:56Z")

</div>

Hello All,

I have created a flow where a users can gain access to a tenant in my application by using a invite link that is generated by an admin. This invite link is basically a nonce that is a key to a record in the applications DB. When this link is used my application creates an authorise link with a extra query pram containing this nonce; there is a corresponding Rule in Auth0 the watches out for this key value pair and makes a call back to the application to validate the nonce.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/c/b/cb5e9ff25e7bcd249e24485afc2504d9a825cbc0.png)

This works well but when a user chooses to use a social connection this custom query pram is stripped out when redirecting to the social connection authorise URL. Is it possible to ensure this custom query pram is added to the redirect\_uri? Would be happy to create a rule to manage this but I can not see in the docs anywhere if this is possible or not, and assuming no.

If it is not possible I recommend that Auth0 add this extensibility point as it seems like an easy win to allow this type of user provisioning. Of course I may be missing something to why this in not possible or a good idea.

Thanks

---

<div class="post-metadata">

**Author:** ![gravypower](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gravypower/32/25056_2.png) [@gravypower](https://community.auth0.com/u/gravypower)\
**Post date:** [October 24, 2020, 2:08am UTC](https://community.auth0.com/t/invite-link-social-connection/52092/2 "2020-10-24T02:08:07Z")

</div>

I have been doing a bit of research and it looks like I may be able to create a custom extension.

---

<div class="post-metadata">

**Author:** ![gravypower](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gravypower/32/25056_2.png) [@gravypower](https://community.auth0.com/u/gravypower)\
**Post date:** [October 28, 2020, 8:39pm UTC](https://community.auth0.com/t/invite-link-social-connection/52092/3 "2020-10-28T20:39:04Z")

</div>

BUMP!

I have been trying to use an custom extension to no success, but I have not been able to devote much time to it this week. I will keep looking into this but does anyone have any thoughts?

---

<div class="post-metadata">

**Author:** ![gravypower](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gravypower/32/25056_2.png) [@gravypower](https://community.auth0.com/u/gravypower)\
**Post date:** [October 29, 2020, 9:20pm UTC](https://community.auth0.com/t/invite-link-social-connection/52092/4 "2020-10-29T21:20:12Z")

</div>

So it seems that I have found the issue, Auth0 renames the attribute that is added to the `context.request.query` prop. So InviteToken will become invite\_token. this was throwing me, and I did not see it as I was going down the garden path with extensions.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 13, 2020, 9:20pm UTC](https://community.auth0.com/t/invite-link-social-connection/52092/5 "2020-11-13T21:20:13Z")

</div>

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