Skip to content

Commit

Permalink
Merge pull request #122 from aserto-dev/samples-cert-path
Browse files Browse the repository at this point in the history
Update sample docs for flask, go, node, and rails
  • Loading branch information
ronenh authored Jul 8, 2024
2 parents d7f4040 + f8b68dc commit c6aff26
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/getting-started/samples/flask.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ pipenv install
```

### Set up the `.env` file
Copy the `.env.example` file to `.env` and update the `ASERTO_AUTHORIZER_CERT_PATH` and `ASERTO_DIRECTORY_GRPC_CERT_PATH` to correspond to the path in which Topaz generated your certificates (by default this path will be `$HOME/.local/share/topaz/certs/grpc-ca.crt`, or `$HOME\AppData\Local\topaz\certs` on Windows).
Copy the `.env.example` file to `.env` and update the `ASERTO_GRPC_CA_CERT_PATH` to correspond to the path in which Topaz generated your certificates
(by default this path will be `$HOME/.local/share/topaz/certs/grpc-ca.crt`, or `$HOME\AppData\Local\topaz\certs` on Windows).

```bash
cp .env.example .env
Expand Down
3 changes: 2 additions & 1 deletion docs/getting-started/samples/go.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ git clone https://github.com/aserto-demo/todo-go-v2
```

## Set up an `.env` file
Copy the `.env.example` file to `.env` and update the `ASERTO_AUTHORIZER_CERT_PATH` and `ASERTO_DIRECTORY_GRPC_CERT_PATH` to correspond to the path in which Topaz generated your certificates (by default this path will be `$HOME/.local/share/topaz/certs/grpc-ca.crt`, or `$HOME\AppData\Local\topaz\certs` on Windows).
Copy the `.env.example` file to `.env` and update the `ASERTO_GRPC_CA_CERT_PATH` to correspond to the path in which Topaz generated your certificates
(by default this path will be `$HOME/.local/share/topaz/certs/grpc-ca.crt`, or `$HOME\AppData\Local\topaz\certs` on Windows).

```bash
cp .env.example .env
Expand Down
3 changes: 2 additions & 1 deletion docs/getting-started/samples/node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ yarn
```

## Set up an `.env` file
Copy the `.env.example` file to `.env` and update the `ASERTO_GRPC_CA_CERT_PATH` to correspond to the path in which Topaz generated your certificates (by default this path will be `$HOME/.local/share/topaz/certs/grpc-ca.crt`, or `$HOME\AppData\Local\topaz\certs` on Windows).
Copy the `.env.example` file to `.env` and update the `ASERTO_GRPC_CA_CERT_PATH` to correspond to the path in which Topaz generated your certificates
(by default this path will be `$HOME/.local/share/topaz/certs/grpc-ca.crt`, or `$HOME\AppData\Local\topaz\certs` on Windows).
`ASERTO_DIRECTORY_REJECT_UNAUTHORIZED=false` will let you connect to a local directory without passing the certificate.

```bash
Expand Down
3 changes: 2 additions & 1 deletion docs/getting-started/samples/rails.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ bundle install
```

## Set up an `.env` file
Copy the `.env.example` file to `.env` and update the `ASERTO_AUTHORIZER_CERT_PATH` and `ASERTO_DIRECTORY_GRPC_CERT_PATH` to correspond to the path in which Topaz generated your certificates (by default this path will be `$HOME/.local/share/topaz/certs/grpc-ca.crt`, or `$HOME\AppData\Local\topaz\certs` on Windows).
Copy the `.env.example` file to `.env` and update the `ASERTO_GRPC_CA_CERT_PATH` to correspond to the path in which Topaz generated your certificates
(by default this path will be `$HOME/.local/share/topaz/certs/grpc-ca.crt`, or `$HOME\AppData\Local\topaz\certs` on Windows).

```bash
cp .env.example .env
Expand Down

0 comments on commit c6aff26

Please sign in to comment.