File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,13 @@ have enabled `password` grant types, let's try:
44
44
45
45
$ 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
46
46
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.
49
54
50
55
** IMPORTANT** : To test implicit grant, you need to ` token_endpoint_auth_method ` to ` none ` .
51
56
You can’t perform that action at this time.
0 commit comments