Skip to content

Commit

Permalink
Add configuration with auth_location in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gregurco committed Nov 7, 2017
1 parent 84b79f8 commit 1cfe1d4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,29 @@ eight_points_guzzle:
grant_type: "Sainsburys\\Guzzle\\Oauth2\\GrantType\\ClientCredentials"
```
#### With client credentials in body
``` yaml
# app/config/config.yml

eight_points_guzzle:
clients:
api_payment:
base_url: "http://api.domain.tld"

auth: oauth2

# plugin settings
plugin:
oauth2:
base_uri: "http://om.dev"
token_url: "/app_dev.php/oauth"
client_id: "test-client-id"
client_secret: "test-client-secret" # optional
scope: "administration"
grant_type: "Sainsburys\\Guzzle\\Oauth2\\GrantType\\ClientCredentials"
auth_location: "body"
```
See more information about middleware [here][3].
## License
Expand Down

0 comments on commit 1cfe1d4

Please sign in to comment.