Skip to content

Commit 4541125

Browse files
committed
Cleanup line length and added a "the"
1 parent da80070 commit 4541125

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

README.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
STACK-2 Authentication Middlewares
22
==================================
33

4-
A collection of [Stack][0] middlewares designed to help Stack Authentication middleware implementors adhere to the [STACK-2 Authentication][1] conventions.
4+
A collection of [Stack][0] middlewares designed to help Stack Authentication
5+
middleware implementors adhere to the [STACK-2 Authentication][1] conventions.
56

67

78
Installation
@@ -15,11 +16,16 @@ Middlewares
1516

1617
### Authentication Middleware
1718

18-
The Authentication middleware takes care of setting up the handling of an inbound request by taking care of some [STACK-2 Authentication][2] housekeeping tasks:
19+
The Authentication middleware takes care of setting up the handling of an
20+
inbound request by taking care of some [STACK-2 Authentication][2] housekeeping
21+
tasks:
1922

20-
* If the `stack.authn.token` is set, it wraps the application in `WwwAuthenticateStackChallenge` and delegates.
21-
* If the there is an `authorization` header, it returns the result of then **authenticate** callback.
22-
* If anonymous requests are received and anonymous requests are allowed, it wraps the application in `WwwAuthenticateStackChallenge` and delegates.
23+
* If the `stack.authn.token` is set, it wraps the application in
24+
`WwwAuthenticateStackChallenge` and delegates.
25+
* If the there is an `authorization` header, it returns the result of then
26+
**authenticate** callback.
27+
* If anonymous requests are received and anonymous requests are allowed, it
28+
wraps the application in `WwwAuthenticateStackChallenge` and delegates.
2329
* Otherwise, it returns the result of the **challenge** callback.
2430

2531
#### Usage
@@ -71,9 +77,12 @@ return (new Authentication($app, [
7177

7278
### WwwAuthenticateStackChallenge Middleware
7379

74-
The WwwAuthenticateStackChallenge middleware takes care of setting up the handling of an outbound response by taking care of some [STACK-2 Authentication][2] housekeeping tasks:
80+
The WwwAuthenticateStackChallenge middleware takes care of setting up the
81+
handling of an outbound response by taking care of some
82+
[STACK-2 Authentication][2] housekeeping tasks:
7583

76-
* If the response has a 401 status code and has a WWW-Authenticate header with the value of Stack, it returns the result of the **challenge** callback.
84+
* If the response has a 401 status code and has a WWW-Authenticate header with
85+
the value of Stack, it returns the result of the **challenge** callback.
7786
* Otherwise the original response from the delegated app is returned.
7887

7988

@@ -111,7 +120,8 @@ MIT, see LICENSE.
111120
Community
112121
---------
113122

114-
If you have questions or want to help out, join us in **#stackphp** or **#dflydev** channels on **irc.freenode.net**.
123+
If you have questions or want to help out, join us in the **#stackphp** or
124+
**#dflydev** channels on **irc.freenode.net**.
115125

116126

117127
[0]: http://stackphp.com/

0 commit comments

Comments
 (0)