-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add auth token instructions to README
- Loading branch information
LJ
authored and
LJ
committed
Jul 27, 2024
1 parent
90cabea
commit 6c066e8
Showing
1 changed file
with
4 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,19 +25,11 @@ Which in turn defeats the purpose of the tests in the first place. | |
|
||
### Generating auth token | ||
|
||
To dogfed the API crate, the auth getting is implemented with a simple rust script using this crate itself. | ||
You can run the binary with: | ||
|
||
```sh | ||
curl --request POST \ | ||
--url https://api.resonite.com/userSessions \ | ||
--header 'Content-Type: application/json' \ | ||
--header 'Accept: application/json' \ | ||
--data '{ | ||
"password": "pa$$word", | ||
"secretMachineId": "string", | ||
"rememberMe": true, | ||
"ownerId": "string", | ||
"email": "[email protected]", | ||
"username": "string" | ||
}' > user-session.json | ||
cargo run --bin auth-helper --all-features | ||
``` | ||
|
||
### Running ignored tests | ||
|