Skip to content

Commit

Permalink
Rename get_token subcommand to getToken in security README
Browse files Browse the repository at this point in the history
  • Loading branch information
hnakamur committed Nov 4, 2016
1 parent 0ad82db commit 4cde190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ Looking at the service logs we can see it received the authorization redirect wi
Using the code to retrieve refresh and access tokens:

```
❯ ./secure-cli --user client --pass secret get_token oauth2_provider --payload='{"grant_type":"authorization_code","code":"authcode","redirect_uri":"http://localhost:8080/handle_redirect"}' --content="application/x-www-form-urlencoded"
❯ ./secure-cli --user client --pass secret getToken oauth2_provider --payload='{"grant_type":"authorization_code","code":"authcode","redirect_uri":"http://localhost:8080/handle_redirect"}' --content="application/x-www-form-urlencoded"
2016/06/14 22:36:23 [INFO] started id=iwE21eIG POST=http://localhost:8080/oauth2/token
2016/06/14 22:36:23 [INFO] completed id=iwE21eIG status=200 time=1.126004ms
{"access_token":"accesstoken","expires_in":3600,"refresh_token":"refreshtoken","token_type":"Bearer"}
Expand All @@ -214,7 +214,7 @@ Using the access token to send requests to the secure endpoint:
Refreshing the access token:

```
❯ ./secure-cli --user client --pass secret get_token oauth2_provider --payload='{"grant_type":"refresh_token","refresh_token":"refreshtoken"}' --content="application/x-www-form-urlencoded"
❯ ./secure-cli --user client --pass secret getToken oauth2_provider --payload='{"grant_type":"refresh_token","refresh_token":"refreshtoken"}' --content="application/x-www-form-urlencoded"
2016/06/14 23:07:42 [INFO] started id=km2N7Udg POST=http://localhost:8080/oauth2/token
2016/06/14 23:07:42 [INFO] completed id=km2N7Udg status=200 time=1.001427ms
{"access_token":"accesstoken","expires_in":3600,"refresh_token":"refreshtoken","token_type":"Bearer"}
Expand Down

0 comments on commit 4cde190

Please sign in to comment.