Skip to content

Commit

Permalink
Rephrase operation/list into an example
Browse files Browse the repository at this point in the history
  • Loading branch information
banterCZ committed Sep 25, 2023
1 parent 89e9eac commit 312ab0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ _Note: If a `--password` option is not provided, this method requires interactiv

### Validate Token

Use a previously created token to retrieve a list of operations.
Token validation may be performed against any endpoint using [Token Based Authentication](https://github.com/wultra/powerauth-restful-integration/blob/develop/docs/RESTful-API-for-Spring.md#use-token-based-authentication).

For example, use the previously created token to retrieve a list of operations.

```bash
java -jar powerauth-java-cmd.jar \
Expand All @@ -234,7 +236,7 @@ java -jar powerauth-java-cmd.jar \
```

Uses the `validate-token` method for an activation with activation ID stored in the status file `/tmp/pa_status.json`, by calling an endpoint `/api/auth/token/app/operation/list` hosted on root URL `http://localhost:8080/enrollment-server`.
The endpoint must be published by the application -- see [Token Based Authentication](https://github.com/wultra/powerauth-restful-integration/blob/develop/docs/RESTful-API-for-Spring.md#use-token-based-authentication). Uses the application identifiers stored in the `/tmp/pamk.json` file.
Uses the application identifiers stored in the `/tmp/pamk.json` file.
The request data is taken from file `/tmp/request.json`.

You can use the `dry-run` parameter, in this case the step is stopped right after signing the request body and preparing appropriate headers.
Expand Down

0 comments on commit 312ab0c

Please sign in to comment.