Skip to content

Commit 1c1a4b2

Browse files
Merge pull request #74 from weierophinney/fix/markdown-lint
Fix linting errors
2 parents 9a724c3 + 743bc69 commit 1c1a4b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/book/v1/authorization-server.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ use Mezzio\Authentication\OAuth2;
2020

2121
$app->post('/oauth2/token', OAuth2\TokenEndpointHandler::class);
2222
```
23+
2324
## Parsing JSON payloads in the token endpoint
24-
To enable the token endpoint to handle the POST requests in JSON, the [Body Parsing Middleware](https://docs.mezzio.dev/mezzio/v3/features/helpers/body-parse/) helper must be included in the application.
25+
26+
To enable the token endpoint to handle the POST requests in JSON, the [Body Parsing Middleware](https://docs.mezzio.dev/mezzio/v3/features/helpers/body-parse/) helper must be included in the application.
2527

2628
For example:
2729

@@ -34,6 +36,7 @@ $app->post('/oauth2/token', [
3436
OAuth2\TokenEndpointHandler::class
3537
], 'auth.token');
3638
```
39+
3740
WARNING: Do not pipe the body parsing middleware as generic middleware.
3841
This ensures that the content body is only parsed when it is actually expected.
3942

0 commit comments

Comments
 (0)