Skip to content

Commit

Permalink
Update README to refer to correct permissions check route (#108)
Browse files Browse the repository at this point in the history
The README previously referred to the old API route, /has, for
permissions checks. This commit updates it to refer to the current
route, /allow.

Signed-off-by: John Schaeffer <[email protected]>
  • Loading branch information
jnschaeffer authored Jun 16, 2023
1 parent e0e9e00 commit 975b26d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ $ curl --oauth2-bearer "$AUTH_TOKEN" \

### Checking permissions

The `/has` API endpoint is used to check whether the authenticated subject in the given bearer token has permission to perform the requested action on the given resource. The following example checks to see whether a subject can perform the `loadbalancer_create` operation on a tenant:
The `/allow` API endpoint is used to check whether the authenticated subject in the given bearer token has permission to perform the requested action on the given resource. The following example checks to see whether a subject can perform the `loadbalancer_create` operation on a tenant:

```
$ curl --oauth2-bearer "$AUTH_TOKEN" \
http://localhost:7602/api/v1/has/loadbalancer_create/on/tnntten-MCR3xIIMWfVpVM22w82NZ
http://localhost:7602/api/v1/allow?action=loadbalancer_create&resource=tnntten-MCR3xIIMWfVpVM22w82NZ
```

## Development
Expand Down

0 comments on commit 975b26d

Please sign in to comment.