Skip to content

Commit

Permalink
updating token documentation (#3002)
Browse files Browse the repository at this point in the history
  • Loading branch information
udaij12 authored Mar 5, 2024
1 parent 1ff1b3b commit 8b51d1e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/token_authorization_api.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# TorchServe token authorization API

## Setup
1. Download the jar files from [Maven](https://mvnrepository.com/artifact/org.pytorch/torchserve-endpoint-plugin)
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.

## Configuration
1. Enable token authorization by adding the provided plugin at start using the `--plugins-path` command.
2. Torchserve will enable token authorization if the plugin is provided. In the current working directory a file `key_file.json` will be generated.
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`
2. In the current working directory a file `key_file.json` will be generated.
1. Example key file:

```python
Expand Down

0 comments on commit 8b51d1e

Please sign in to comment.