You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Email-confirmation URL should be configurable #333
The email confirmation (verification) URL is not configurable from the environment variable. when the user tries to verify(confirm) the email It directs to authorizer built-in page, it's ok to redirect to the default authorizer page, but it should be configurable because we need to do our business logic and redirect the URL (email-verification URL) to our page.
It should be flexible as per user needs.
Currently, the email verification URL takes AUTHORIZER_URL env value if it is provided, but we use AUTHORIZER_URL for third-party authentication by this reason we can't change the URL to use in email verification to redirect verification to our site.
Steps To Reproduce
signup
try to verify user email - email confirmation(verification)
Expected behavior
Authorizer URL that we used for third-party authentication should be configurable differently from the URL we use for email verification, forgot-password, etc. those authentication URLs like email-verification and forgot-password should be configurable from the environment variable.
@lakhansamani
I tried both ways, they are working well, and the issue resolved, but in email-verificatioin and magic-link, when user clicked the link at the first time it worked as intended and redirected to the given redirect_uri. but if clicked the 2nd time it redirected to the default AUTHORIZER_URI.
When click the link for the 2nd time , it not use a given redirect_uri.
Implemented — the email verification link's redirect_uri is caller-supplied and validated against AllowedOrigins (internal/http_handlers/verify_email.go), most recently hardened as part of #686.
Activity
lakhansamani commentedon Mar 7, 2023
@minilikmila There are 2 ways to configure this
redirect_url/redirect_uriparams available for signup / magic_link/forgot_password mutations in APIAPP_URLenv variable.Can you please try with above 2 approaches and let me know if that does not work.
minilikmila commentedon Mar 7, 2023
@lakhansamani
I tried both ways, they are working well, and the issue resolved, but in email-verificatioin and magic-link, when user clicked the link at the first time it worked as intended and redirected to the given redirect_uri. but if clicked the 2nd time it redirected to the default AUTHORIZER_URI.
When click the link for the 2nd time , it not use a given redirect_uri.
lakhansamani commentedon Mar 7, 2023
True, we need to redirect in case of failure of as well
Seems duplicate of following
#321
Thank you for sharing this.
I will fix this in upcoming releases.
minilikmila commentedon Mar 7, 2023
@lakhansamani Okay, appreciated, Thank you for your kind and immediate response.
canpacis commentedon May 8, 2025
Are there any updates on this?
lakhansamani commentedon Jul 21, 2026
Implemented — the email verification link's redirect_uri is caller-supplied and validated against AllowedOrigins (internal/http_handlers/verify_email.go), most recently hardened as part of #686.