Adding connection in Email verification redirect link

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

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

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.

Hi @monika.prakash

Thanks for contacting Auth0 Community !!!

You can use some common variables in the email template. You can find all variables here

What you are looking for is connection.name.

Hope it helps
Jeff

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

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.

please check the image and help me please…

@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

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

1 Like

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

1 Like

@jeff0

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

@jeff0

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?

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

In the link

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

1 Like

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

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

1 Like

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