# Adding connection in Email verification redirect link

**URL:** <https://community.auth0.com/t/adding-connection-in-email-verification-redirect-link/72553>\
**Category:** Get Help\
**Tags:** verification-email\
**Created:** [November 3, 2021, 10:18am UTC](https://community.auth0.com/t/adding-connection-in-email-verification-redirect-link/72553 "2021-11-03T10:18:11Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![monika.prakash](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/monika.prakash/32/13482_2.png) [@monika.prakash](https://community.auth0.com/u/monika.prakash)\
**Post date:** [November 3, 2021, 10:18am UTC](https://community.auth0.com/t/adding-connection-in-email-verification-redirect-link/72553/1 "2021-11-03T10:18:11Z")

</div>

HI

I added some url in my redirect URL filed in email verification (using link).

And now I am getting email\_verifed keyword and message keyword correctly.

I have different database connection.

is there any method for appending connection details in the url ?

Is there any document for this

 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/2/a2f86a5a21d69cbc7e04563a546aba2d7092264b.png)

I want to add connection.name in that redirection url

{% if connection.name == ‘impart-local’ %}

```
<a href="{{ url }}"></a>

```

{% elsif connection.name == ‘impart-dev’ %}

```
<a href="{{ url }}"></a>

```

{% else %}

```
     <a href="{{ url }}"></a>

```

{% endif %}

How can I pass connection.name also to this…  
I want connection.name and the default query params that alredy given from the AUTH.

How can i do this

Please share any document

---

<div class="post-metadata">

**Author:** ![monika.prakash](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/monika.prakash/32/13482_2.png) [@monika.prakash](https://community.auth0.com/u/monika.prakash)\
**Post date:** [November 3, 2021, 6:52pm UTC](https://community.auth0.com/t/adding-connection-in-email-verification-redirect-link/72553/2 "2021-11-03T18:52:11Z")

</div>

Hi

Is there any solution ? We are totally stuck here.  
if you don’t understand my issue please say.  
Or please suggest the referral document.

---

<div class="post-metadata">

**Author:** ![jeff0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff0/32/30027_2.png) [@jeff0](https://community.auth0.com/u/jeff0)\
**Post date:** [November 4, 2021, 1:45am UTC](https://community.auth0.com/t/adding-connection-in-email-verification-redirect-link/72553/3 "2021-11-04T01:45:29Z")

</div>

Hi @monika.prakash

Thanks for contacting Auth0 Community !!!

You can use some common variables in the email template. You can find all variables [here](https://auth0.com/docs/brand-and-customize/email/customize-email-templates#common-variables)

What you are looking for is `connection.name`.

Hope it helps  
Jeff

---

<div class="post-metadata">

**Author:** ![monika.prakash](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/monika.prakash/32/13482_2.png) [@monika.prakash](https://community.auth0.com/u/monika.prakash)\
**Post date:** [November 4, 2021, 5:39am UTC](https://community.auth0.com/t/adding-connection-in-email-verification-redirect-link/72553/5 "2021-11-04T05:39:36Z")

</div>

@jeff0  
Thank you for response  
My requirement is while sending a email verification link we got

> **[Mobile Only | Impart Wealth](https://main.d2v1kqpye3yr3q.amplifyapp.com/?supportSignUp=true&supportForgotPassword=true&email=moni123%40mailinator.com&message=This%20account%20is%20already%20verified.&success=false&code=already-verified)**

like this… Here you are providing email only.  
In that link only email is getting… I want to know this user belongs to which database connection also.  
please check my user details section  
there are users with same email and different connection details(database)  
then how can I identify the user is belongs to which database.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/6/8/6853882ec5404273079e7e89371dda50a08ee581.png)

please check the image and help me please…

---

<div class="post-metadata">

**Author:** ![monika.prakash](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/monika.prakash/32/13482_2.png) [@monika.prakash](https://community.auth0.com/u/monika.prakash)\
**Post date:** [November 4, 2021, 11:12am UTC](https://community.auth0.com/t/adding-connection-in-email-verification-redirect-link/72553/6 "2021-11-04T11:12:01Z")

</div>

@jeff0  
Can we do anything to solve this…  
From that link we only getting the email also… we want to redirect it to mobile app using deep link… Only with email we are not able to understand that user belongs to which environment.

We want to identify any data of the user , if we get the database connection we are happy…  
Then only we can identify the user belongs to dev or qa or production or preprod…

I am sending this again and again because its urgent to us… Please share something related to this

think about we create 2 user

{

```
"client_id":"uRHuNlRNiDKcbHcKtt0L08T0GkY8jtxe",

"email":"monika303@gamil.com",

"password":"Test@1235",

"connection":"impart-iosdev",

"username": "Test",

"given_name": "Test",

"family_name": "Test",

"name": "Test",

"nickname": "Test",

"picture": "http://example.org/jdoe.png",

"user_metadata": { "impartWealthId" : "id" }

```

}

and

{

```
"client_id":"uRHuNlRNiDKcbHcKtt0L08T0GkY8jtxe",

"email":"monika303@gamil.com",

"password":"Test@1235",

"connection":"impart-dev",

"username": "Test",

"given_name": "Test",

"family_name": "Test",

"name": "Test",

"nickname": "Test",

"picture": "http://example.org/jdoe.png",

"user_metadata": { "impartWealthId" : "id" }

```

}

In both this auth0 sending the verification link with same email and no unique value. How can we identify the connection details of user… ??? we need that one also

we are using this api

https://{{auth0\_domain}}/dbconnections/signup

---

<div class="post-metadata">

**Author:** ![jeff0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff0/32/30027_2.png) [@jeff0](https://community.auth0.com/u/jeff0)\
**Post date:** [November 4, 2021, 12:01pm UTC](https://community.auth0.com/t/adding-connection-in-email-verification-redirect-link/72553/7 "2021-11-04T12:01:40Z")

</div>

Hi @monika.prakash

Are you creating all these users for testing purposes? So for example QA user gets redirected to the QA instance of your application etc? I am struggling. to understand the use case.

Do you have a sequence diagram for me to understand this better ?

Regards  
Jeff

---

<div class="post-metadata">

**Author:** ![jeff0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff0/32/30027_2.png) [@jeff0](https://community.auth0.com/u/jeff0)\
**Post date:** [November 4, 2021, 12:08pm UTC](https://community.auth0.com/t/adding-connection-in-email-verification-redirect-link/72553/8 "2021-11-04T12:08:48Z")

</div>

Hi @monika.prakash

Instead of using same application for testing purpose, it will be good to create new application for testing purposes. This way you will have different redirect uri registered for apps.

Hope it helps  
Jeff

---

<div class="post-metadata">

**Author:** ![monika.prakash](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/monika.prakash/32/13482_2.png) [@monika.prakash](https://community.auth0.com/u/monika.prakash)\
**Post date:** [November 4, 2021, 12:54pm UTC](https://community.auth0.com/t/adding-connection-in-email-verification-redirect-link/72553/9 "2021-11-04T12:54:19Z")

</div>

@jeff0

If we are using different application How can we get different URL ???  
I one auth 0 account only 1 email template exist?

---

<div class="post-metadata">

**Author:** ![monika.prakash](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/monika.prakash/32/13482_2.png) [@monika.prakash](https://community.auth0.com/u/monika.prakash)\
**Post date:** [November 4, 2021, 1:30pm UTC](https://community.auth0.com/t/adding-connection-in-email-verification-redirect-link/72553/10 "2021-11-04T13:30:45Z")

</div>

@jeff0

 ![1](https://global.discourse-cdn.com/auth0/original/3X/7/4/74c8c76758634a861c2397cc8872b8828f6678a3.png)

check we have 4 application here

in Impart-auth-poc we are storing our user details.

in include different database ( already attached above)

we have one place for email-verification(link)

we can only specify one redirect url… is it correct?

 ![2](https://global.discourse-cdn.com/auth0/original/3X/5/2/52ca53aacd6392ff1446cf47b75278520b8b27a7.png)

then how we get different URL for different application?

In our testing process we create same email Id in different database connection and we got  
email verification link

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

In the link

---

<div class="post-metadata">

**Author:** ![jeff0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff0/32/30027_2.png) [@jeff0](https://community.auth0.com/u/jeff0)\
**Post date:** [November 4, 2021, 9:00pm UTC](https://community.auth0.com/t/adding-connection-in-email-verification-redirect-link/72553/11 "2021-11-04T21:00:45Z")

</div>

Hi @monika.prakash

Thank you for sending through details.

Under the `Redirect To box,` there is a text which can help you to add application-specific call back domains. Please have a look at that text and the link provided for help

Hope it helps  
Jeff

---

<div class="post-metadata">

**Author:** ![monika.prakash](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/monika.prakash/32/13482_2.png) [@monika.prakash](https://community.auth0.com/u/monika.prakash)\
**Post date:** [November 4, 2021, 9:10pm UTC](https://community.auth0.com/t/adding-connection-in-email-verification-redirect-link/72553/12 "2021-11-04T21:10:11Z")

</div>

@jeff0  
Hi  
That means in same application there is no method for identifying email is belongs to which database connection ?

---

<div class="post-metadata">

**Author:** ![jeff0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff0/32/30027_2.png) [@jeff0](https://community.auth0.com/u/jeff0)\
**Post date:** [November 4, 2021, 11:06pm UTC](https://community.auth0.com/t/adding-connection-in-email-verification-redirect-link/72553/13 "2021-11-04T23:06:24Z")

</div>

Hi @monika.prakash

If you have seperate applicaitons, then keep db connections separate as well. You can enable/disable connections per applications.

So if you do above you can modify your email template to get correct redirect uri.

Hope it helps  
Jeff

---

<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 19, 2021, 11:06pm UTC](https://community.auth0.com/t/adding-connection-in-email-verification-redirect-link/72553/14 "2021-11-19T23:06:48Z")

</div>

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