forked from positiondev/offset
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch back to V1 API, as V2 seems not complete.
Also, add local app tests, which fixes positiondev#8.
- Loading branch information
Showing
78 changed files
with
8,915 additions
and
12,750 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
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
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
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,34 @@ | ||
# Basic Authentication handler | ||
This plugin adds Basic Authentication to a WordPress site. | ||
|
||
Note that this plugin requires sending your username and password with every | ||
request, and should only be used for development and testing. We strongly | ||
recommend using the [OAuth 1.0a][oauth] authentication handler for production. | ||
|
||
## Installing | ||
1. Download the plugin into your plugins directory | ||
2. Enable in the WordPress admin | ||
|
||
## Using | ||
This plugin adds support for Basic Authentication, as specified in [RFC2617][]. | ||
Most HTTP clients will allow you to use this authentication natively. Some | ||
examples are listed below. | ||
|
||
### cURL | ||
|
||
```sh | ||
curl --user admin:password http://example.com/wp-json/ | ||
``` | ||
|
||
### WP_Http | ||
|
||
```php | ||
$args = array( | ||
'headers' => array( | ||
'Authorization' => 'Basic ' . base64_encode( $username . ':' . $password ), | ||
), | ||
); | ||
``` | ||
|
||
[oauth]: https://github.com/WP-API/OAuth1 | ||
[RFC2617]: https://tools.ietf.org/html/rfc2617 |
Oops, something went wrong.