From 872c3b356045b822d6529b4a28caf38d4e2bbea1 Mon Sep 17 00:00:00 2001 From: Paul Flynn Date: Sun, 29 Dec 2024 12:46:02 -0500 Subject: [PATCH] Update WebAuthn RP values and enhance README example Changed the WebAuthn RP ID and origin to "arkavo.net" to align with the updated domain. Also added a simpler `curl` example in the README for easier authentication testing. --- README.md | 5 +++++ src/main.rs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ad05db7..00f0df1 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,11 @@ curl -X POST http://localhost:8080/register/testuser \ ``` 2. Authenticate: + +```shell +curl http://localhost:8080/authenticate/testuser +``` + ```shell curl -X POST http://localhost:8080/authenticate/testuser \ -H "Content-Type: application/json" \ diff --git a/src/main.rs b/src/main.rs index 91a088e..f69a65c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,8 +70,8 @@ async fn main() -> Result<(), Box> { }; // Create the Webauthn instance - let rp_id = "webauthn.arkavo.net"; - let rp_origin = Url::parse("https://webauthn.arkavo.net").expect("Invalid URL"); + let rp_id = "arkavo.net"; + let rp_origin = Url::parse("https://arkavo.net").expect("Invalid URL"); let builder = WebauthnBuilder::new(rp_id, &rp_origin).expect("Invalid configuration"); let builder = builder.rp_name("Arkavo"); let webauthn = Arc::new(builder.build().expect("Invalid configuration"));