Skip to content

Commit 8b51d1e

Browse files
authored
updating token documentation (#3002)
1 parent 1ff1b3b commit 8b51d1e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/token_authorization_api.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# TorchServe token authorization API
22

3+
## Setup
4+
1. Download the jar files from [Maven](https://mvnrepository.com/artifact/org.pytorch/torchserve-endpoint-plugin)
5+
2. Enable token authorization by adding the `--plugins-path /path/to/the/jar/files` flag at start up with the path leading to the downloaded jar files.
6+
37
## Configuration
4-
1. Enable token authorization by adding the provided plugin at start using the `--plugins-path` command.
5-
2. Torchserve will enable token authorization if the plugin is provided. In the current working directory a file `key_file.json` will be generated.
8+
1. Torchserve will enable token authorization if the plugin is provided. Expected log statement `[INFO ] main org.pytorch.serve.servingsdk.impl.PluginsManager - Loading plugin for endpoint token`
9+
2. In the current working directory a file `key_file.json` will be generated.
610
1. Example key file:
711

812
```python

0 commit comments

Comments
 (0)