This repository has been archived by the owner on Jun 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -299,6 +299,20 @@ Useful if your app requires two pieces of information to authentication: `userna | |
[insert-file:./snippets/basic-auth.js] | ||
``` | ||
|
||
### Digest | ||
|
||
*New in v7.4.0.* | ||
|
||
The setup and user experience of Digest Auth is identical to Basic Auth. Users will provide Zapier their username and password. And Zapier will handle all the nonce and quality of protection details automatically. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
> Example App: check out https://github.com/zapier/zapier-platform-example-app-digest-auth for a working example app for digest auth. | ||
> Currently, only MD5 algorithm is supported. And server nonces are not reused. That means for every `z.request` call, Zapier will sends an additional request beforehand to get the server nonce. This could be slightly slower than Basic Auth. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
xavdid
Contributor
|
||
```js | ||
[insert-file:./snippets/digest-auth.js] | ||
``` | ||
|
||
### Custom | ||
|
||
This is what most "API Key" driven apps should default to using. You'll likely provide some custom `beforeRequest` middleware or a `requestTemplate` to complete the authentication by adding/computing needed headers. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const authentication = { | ||
type: 'digest', | ||
// "test" could also be a function | ||
test: { | ||
url: 'https://example.com/api/accounts/me.json' | ||
}, | ||
connectionLabel: '{{bundle.authData.username}}' // Can also be a function, check digest auth below for an example | ||
// you can provide additional fields, but we'll provide `username`/`password` automatically | ||
}; | ||
|
||
const App = { | ||
// ... | ||
authentication: authentication | ||
// ... | ||
}; |
Super minor, but I'd change
...their username and password. And Zapier
to...their username and password and Zapier