Skip to content

Commit

Permalink
Update user guide for tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
kjsanger committed Jun 17, 2024
1 parent 18d5ea6 commit 15e2adc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ Authorisation tokens are specific to a pipeline and more than one token can be i

`curl -L -X POST -H "Authorization: Bearer $ADMIN_TOKEN" https://$SERVER:$PORT/pipelines/$PIPELINE_NAME/token/$TOKEN_DESCRIPTION`

The server will respond with a JSON document containing the new bearer token which you may use for subsequent pipeline-specific communication:

```javascript
{
"name": "$PIPELINE_NAME",
"description": "$TOKEN_DESCRIPTION",
"token": "$TOKEN"
}
```

### Step 1 - register your pipeline with npg_porch

*Schema: npg_porch.model.pipeline*
Expand Down

0 comments on commit 15e2adc

Please sign in to comment.