Skip to content

Commit

Permalink
Merge pull request #3381 from reubenmiller/docs-fix-smartrest-one-notes
Browse files Browse the repository at this point in the history
docs: fix Cumulocity username/password instructions
  • Loading branch information
reubenmiller authored Feb 5, 2025
2 parents f80c5b4 + 1f48d03 commit d755f0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/operate/c8y/smartrest-one.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ This guide is intended for users who must use the SmartREST 1.0 for specific rea
To use SmartREST 1.0, the authentication mode must be set to `basic` using the `tedge config` CLI tool:

```sh
sudo tedge config set c8y.auth_mode basic
sudo tedge config set c8y.auth_method basic
```

Next, provide credentials (username/password) in a credential file formatted as follows.
The default location of the credentials file is `/etc/tedge/credentials.toml`:

```toml
```toml title="file: /etc/tedge/credentials.toml"
[c8y]
username = "t5678/octocat"
password = "abcd1234"
Expand All @@ -32,7 +32,7 @@ password = "abcd1234"
If needed, you can specify a custom location for the credentials file using the `tedge config` CLI tool:

```sh
sudo tedge config set c8y.credentials_path </custom/path/to/credentials.toml>
sudo tedge config set c8y.credentials_path /custom/path/to/credentials.toml
```

## Configuring the device ID
Expand Down

0 comments on commit d755f0f

Please sign in to comment.