You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+6
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,12 @@ The hapi-auth-signature scheme takes the following options.
20
20
included when `isValid` is `true`, but there are cases when the application needs to know who tried to authenticate even when it fails
21
21
(e.g. with authentication mode `'try'`).
22
22
23
+
-`payloadFunc` - (optional) payload validation function with the signature `function(request, callback)` where:
24
+
-`request` - hapi request object.
25
+
-`callback` - a callback function with the signature `function(err, isValid)` where:
26
+
-`err` - an internal error.
27
+
-`isValid` - `true` if the payload is verified, otherwise `false`.
28
+
23
29
The validation function shown below is based on an hmac strategy with a key identifier and secret key stored in a user record. [http-signature](https://github.com/joyent/node-http-signature) supports the following algorithms:
0 commit comments