Skip to content

Commit

Permalink
Fix: Admins examples broken steps formatting (#8073)
Browse files Browse the repository at this point in the history
* fix indent

* remove extra line
  • Loading branch information
lena-larionova authored Nov 7, 2024
1 parent ed250b1 commit ebfa3af
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/_src/gateway/production/access-control/register-admin-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ Extract and store the token from the registration URL, either by manually creati
{% navtab Manual method example %}

1. Send a request to the registration URL

```bash
curl -i http://localhost:8001/$WORKSPACE/admins/$USERNAME?generate_register_url=true \
-H Kong-Admin-Token:$TOKEN
```
```bash
curl -i http://localhost:8001/$WORKSPACE/admins/$USERNAME?generate_register_url=true \
-H Kong-Admin-Token:$TOKEN
```

2. Copy the response and export as an environment variable, for example:
```bash
export REGISTER_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1NDUwNjc0NjUsImlkIjoiM2IyNzY3MzEtNjIxZC00ZjA3LTk3YTQtZjU1NTg0NmJkZjJjIn0.gujRDi2pX_E7u2zuhYBWD4MoPFKe3axMAq-AUcORg2g
```
```bash
export REGISTER_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1NDUwNjc0NjUsImlkIjoiM2IyNzY3MzEtNjIxZC00ZjA3LTk3YTQtZjU1NTg0NmJkZjJjIn0.gujRDi2pX_E7u2zuhYBWD4MoPFKe3axMAq-AUcORg2g
```

{% endnavtab %}
{% navtab Programmatic method (requires jq) %}

Expand Down

0 comments on commit ebfa3af

Please sign in to comment.