Skip to content

Commit e48cfb1

Browse files
author
Leon Strauss
committed
added todo
1 parent 9c0654a commit e48cfb1

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
node_modules
22
*.log
3-
server.js

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ likely look up some data instead ;-)
5959

6060
# Custom Async Authorization
6161

62-
Note that the `authorizer` function is expected to be synchronous here. This is
62+
Note that the `authorizer` function above is expected to be synchronous. This is
6363
the default behavior, you can pass `authorizeAsync: true` in the options object to indicate
6464
that your authorizer is asynchronous. In this case it will be passed a callback
6565
as the third parameter, which is expected to be called by standard node convention
@@ -90,7 +90,7 @@ on unauthorized responses:
9090
challenge: true
9191
}));
9292

93-
# Try it
93+
## Try it
9494

9595
The repository contains an `example.js` that you can run to play around and try
9696
the middleware. To use it just put it somewhere (or leave it where it is), run
@@ -100,3 +100,11 @@ the middleware. To use it just put it somewhere (or leave it where it is), run
100100

101101
This will start a small express server listening at port 8080. Just look at the file,
102102
try out the requests and play around with the options.
103+
104+
## To Do
105+
106+
- Allow customization of unauthorized response body
107+
- Allow to set a realm for the challenge
108+
- Some kind of automated testing with the example server
109+
- Maybe add some optional callback to be called for unauthorized requests (for security logging)
110+
- Decide wha should be included in `1.0.0`

0 commit comments

Comments
 (0)