mirror of
https://github.com/anonaddy/anonaddy.git
synced 2026-04-25 06:05:55 +03:00
[GH-ISSUE #612] Receive 403 "invalid signature" on /email/verify #1005
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/anonaddy#1005
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Dryusdan on GitHub (Mar 12, 2024).
Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/612
Hello
I try to install anonaddy on self hosted server and I encounter an error when I try to validate email : "403 Invalid signature.".
I follow SELF hosted guide.
I drop and recreate database, flush redis DB, drop and reinstall website before ask here without success :/
I haven't any log even in debug mode, the only log I have is access log which confirm I'm on the good server ^^
Can you help me ? ^^'
Thank :)
@willbrowningme commented on GitHub (Mar 12, 2024):
It must be one of these
AuthorizationException- https://github.com/anonaddy/anonaddy/blob/master/app/Http/Controllers/Auth/VerificationController.php#L80Can you add logging inside those if statements to identify which one it is?
@Dryusdan commented on GitHub (Mar 13, 2024):
Surprisingly, I access only to
__constructfunction and no one bellow it.I keep digging :)
@Dryusdan commented on GitHub (Mar 13, 2024):
I check datetime on server and it good.
I also check my PHP configuration and replace it by default PHP config without success/
I double check mariadb and see the encoding isn't good. I recreate database with good parameter and the result still the same :/
@willbrowningme commented on GitHub (Mar 13, 2024):
It's actually throwing an
InvalidSignatureExceptionfrom theValidateSignaturemiddleware - https://github.com/anonaddy/anonaddy/blob/master/app/Http/Controllers/Auth/VerificationController.php#L47So there must be a problem with your verification URL which is created here:
https://github.com/anonaddy/anonaddy/blob/master/app/Notifications/CustomVerifyEmail.php#L66-L73
@Dryusdan commented on GitHub (Mar 13, 2024):
I don't see how I can check if generated URL is good :/
I have this url :
(When it's okay, I recreate a new instance with new app key ^^)
I check if expires isn't good but it's okay
@willbrowningme commented on GitHub (Mar 13, 2024):
The hash must not match that is checked here then - https://github.com/laravel/framework/blob/11.x/src/Illuminate/Routing/UrlGenerator.php#L426-L441
Is your
APP_URLcorrect in your.envfile?@Dryusdan commented on GitHub (Mar 13, 2024):
It look good 🤔
(yes, my domain have some number 😅 )
The
redacted_domain.tldis this domain@willbrowningme commented on GitHub (Mar 13, 2024):
Please try the suggestion in this answer https://stackoverflow.com/a/73215178.
Also check this thread.
You might want to remove your actual app URL from your previous comment too.
@Dryusdan commented on GitHub (Mar 13, 2024):
The URL:: class isn't loaded
AppServiceProvider(app/Providers/AppServiceProvider.php), so it's make 500.I change
$proxieswithout success.But, the first link is also good (https://stackoverflow.com/a/75502346). I automated my vhost creation and the location wasn't good. I don't check it....
So, When I replace
by this
It's work !
Thank you for your help and I'm so sorry to have wasted your time