You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/token_authorization_api.md
+6-2
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,12 @@
1
1
# TorchServe token authorization API
2
2
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
+
3
7
## 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.
0 commit comments