mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 10:30:41 +08:00
Avoid having ssh-agent a hard dependency of `rad-auth`. Only add the user's key in `auth::init()` to ssh-agent if it is running, instead of exiting with error. For `auth::authenticate()` which is used to authenticate the user with Radicle, assume using `RAD_PASSPHRASE` is a fallback authentication method. If ssh-agent is not-detected, verify the RAD_PASSPHRASE is present and correct. Treat neither being present as an error. Support this by clarifying on `ssh::agent::connect()`s error which are due to it not being present.
27 lines
862 B
Markdown
27 lines
862 B
Markdown
Initializing a new identity with `rad-auth`.
|
|
The example below is run with `RAD_PASSPHRASE` set.
|
|
|
|
```
|
|
$ rad auth
|
|
|
|
Initializing your radicle 👾 identity
|
|
|
|
✓ Creating your Ed25519 keypair...
|
|
✓ Your Radicle ID is did:key:z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi. This identifies your device.
|
|
|
|
👉 To create a radicle project, run `rad init` from a git repository.
|
|
```
|
|
|
|
You can get the above information at all times using the `self` command:
|
|
|
|
```
|
|
$ rad self
|
|
DID did:key:z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi
|
|
Node ID (NID) z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi
|
|
Key (hash) SHA256:UIedaL6Cxm6OUErh9GQUzzglSk7VpQlVTI1TAFB/HWA
|
|
Key (full) ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHahWSBEpuT1ESZbynOmBNkLBSnR32Ar4woZqSV2YNH1
|
|
Storage (git) [..]/storage
|
|
Storage (keys) [..]/keys
|
|
Node (socket) [..]/node/control.sock
|
|
```
|