From ef0553b0eb8ffc15540bc92404b790bfd3e235b0 Mon Sep 17 00:00:00 2001 From: insumisos Date: Mon, 26 Oct 2026 22:51:05 +0100 Subject: [PATCH] Permit no slash in management auth URL handling A slash is appended to the `base_url`, however most NIP-98 clients sign the URL without the slash. --- src/web/management/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/management/auth.rs b/src/web/management/auth.rs index 7fd80e6..dd5e96c 100644 --- a/src/web/management/auth.rs +++ b/src/web/management/auth.rs @@ -89,7 +89,7 @@ pub async fn check_auth(request: Request) -> Result<(Pubkey, Value), E format!("{}", uri) }; - if actual_url != auth_url { + if actual_url.trim_end_matches('/') != auth_url.trim_end_matches('/') { return s_err(&format!( "Authorization event URL {} does not match requqest URL {}", auth_url, actual_url