Skip to content

Commit d46f551

Browse files
committed
updated documentation for auth
1 parent 37e0d52 commit d46f551

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

auth.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,14 @@ auth:
111111
loginEndpointAuth:
112112
# ... other data here
113113
token:
114-
headerPrefix="Bearer "
115-
extractFromField = "/token/authToken"
116-
httpHeaderName="Authorization"
114+
extractFrom="body"
115+
extractSelector="/token/authToken"
116+
sendIn="header"
117+
sendName="Authorization"
118+
sendTemplate="Bearer {token}"
117119
```
118120

119-
What will happen here is that a fuzzer will make a POST to `/login` and then extract the field `token.authToken` from the JSON response (the entry `extractFromField` is treated as a JSON Pointer (RFC 6901)).
121+
What will happen here is that a fuzzer will make a POST to `/login` and then extract the field `token.authToken` from the JSON response (the entry `extractSelector` is treated as a JSON Pointer (RFC 6901)).
120122
Assume for example we have `token.authToken = 123456`.
121123
In the following auth requests, then the fuzzer will make requests with HTTP header: `Authorization:Bearer 123456`.
122124

0 commit comments

Comments
 (0)