Hi Dan,
I’m not using the try button, we’re just signing up on Auth0 and receiving a verification mail or a password reset mail through Sendgrid.
Thing though is that in the email syntax we use {{ url }} to fill in the anchor of the button. Is that correct? Cause this is the default settings of Auth0, we didn’t change anything except for picking the Sendgrid provider.
Can you confirm that {{ application.callback_domain }}
will be parsed into {{ url }}
?
<p><a href="{{ url }}">Confirm my account</a></p>
I also had a look at the logs and I do get the invalid result url for the verification mail:
Browser response:
{
* name: "BadRequestError",
* code: "invalid_result_url",
* description: "invalid result url: ?supportSignUp=true&supportForgotPassword=true&email=mymail%40gmail.com&message=Your%20email%20was%20verified.%20You%20can%20continue%20using%20the%20application.&success=true&code=success",
* statusCode: 400
}
Server log:
{
"date": "2019-11-21T08:40:06.581Z",
"type": "fv",
"description": "invalid result url: ?supportSignUp=true&supportForgotPassword=true&email=mymail%40gmail.com&message=Your%20email%20was%20verified.%20You%20can%20continue%20using%20the%20application.&success=true&code=success",
"connection": "Username-Password-Authentication",
"connection_id": "con_GonW3fPLiGPRpPX0",
"client_id": "o8VU0ELFA2Kn51yV0kULmGwAWnVZqrW9",
"client_name": "All Applications",
"ip": "157.97.115.90",
"user_agent": "Chrome 78.0.3904 / Mac OS X 10.14.6",
"details": {
"query": {
"email": "mymail@gmail.com",
"user_id": "auth0|5dd64baabf27480f12ff131f",
"tenant": "tenant_name",
"client_id": "id",
"connection": "Username-Password-Authentication",
"resultUrl": "{{ application.callback_domain }}",
"includeEmailInRedirect": true
}
},
"user_id": "auth0|5dd64baabf27480f12ff131f",
"user_name": "mymail@gmail.com",
"strategy": "auth0",
"strategy_type": "database",
"log_id": "90020191121084007830000781605157391171459514113841954834",
"_id": "90020191121084007830000781605157391171459514113841954834",
"isMobile": false
}
For resetting the password the logs show success, but the page doesn’t redirect after you’ve set a new password.
{
"date": "2019-11-21T08:43:45.656Z",
"type": "scp",
"description": "You can now login to the application with the new password.",
"connection": "Username-Password-Authentication",
"connection_id": "con_GonW3fPLiGPRpPX0",
"client_id": "ALLTaVkgg3EIpuSg8ol5MlPM9aKbS1wl",
"client_name": "Client Name",
"ip": "",
"user_agent": "Chrome 78.0.3904 / Mac OS X 10.14.6",
"details": {
"title": "Change Password",
"email": "mymail@gmail.com",
"body": {
"newPassword": "*****",
"confirmNewPassword": "*****",
"_csrf": "eryNe9z5-n4q06SARF7Li5Q1EhMZEEJOF2Nc",
"ticket": "7j7bHByKE2YbBwBUD6WuuQMd3S8miqrZ"
},
"query": {
"user_id": "5dd64baabf27480f12ff131f",
"email": "mymail@gmail.com",
"username": null,
"newPassword": null,
"tenant": "boretti",
"client_id": "ALLTaVkgg3EIpuSg8ol5MlPM9aKbS1wl",
"connection": "Username-Password-Authentication",
"resultUrl": null,
"markEmailAsVerified": true,
"includeEmailInRedirect": true
}
},
"user_id": "auth0|5dd64baabf27480f12ff131f",
"user_name": "mymail@gmail.com",
"strategy": "auth0",
"strategy_type": "database",
"log_id": "90020191121084347300007312770736688595898600440526274594",
"_id": "90020191121084347300007312770736688595898600440526274594",
"isMobile": false
}
I’ve send you our tenant via DM.
All the best,
Joralf