Skip to content

Commit baf728f

Browse files
committed
curl example
1 parent 537dd1f commit baf728f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,13 @@ have enabled `password` grant types, let's try:
4444

4545
$ curl -u ${client_id}:${client_secret} -XPOST http://127.0.0.1:5000/oauth/token -F grant_type=password -F username=${username} -F password=valid -F scope=profile
4646

47-
Because this is an example, every user's password is `valid`. For now, you
48-
can read the source in example or follow the long boring tutorial below.
47+
Because this is an example, every user's password is `valid`. Now you can access `/api/me`:
48+
49+
```bash
50+
$ curl -H "Authorization: Bearer ${access_token}" http://127.0.0.1:5000/api/me
51+
```
52+
53+
For now, you can read the source in example or follow the long boring tutorial below.
4954

5055
**IMPORTANT**: To test implicit grant, you need to `token_endpoint_auth_method` to `none`.
5156

0 commit comments

Comments
 (0)