Skip to content

Commit

Permalink
Update WebAuthn RP values and enhance README example
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
arkavo-com committed Dec 29, 2024
1 parent 37bf759 commit 872c3b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
};

// 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"));
Expand Down

0 comments on commit 872c3b3

Please sign in to comment.