Skip to content

Commit

Permalink
Add simple readme
Browse files Browse the repository at this point in the history
  • Loading branch information
justingreerbbi committed Feb 8, 2016
1 parent 7f59ab9 commit 3c791cc
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 37 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# [WP OAuth Server](https://wp-oauth.com/)

Create and Manage an OAuth 2.0 server powered by WordPress. Become a Single Sign On Provider and or resource server.
WP OAuth Server is built for medium to large business's but works well for small and personal projects as well.

This plugin only supports WordPress 4.4.0 or greater


1 change: 0 additions & 1 deletion includes/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ function wo_default_scopes () {
/**
* DEFAULT DESTROY METHOD
* This method has been added to help secure installs that want to manually destroy sessions (valid access tokens).
*
* @since 3.1.5
*/
function _wo_method_destroy ( $token = null ) {
Expand Down
6 changes: 2 additions & 4 deletions library/class-wo-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,8 @@
| OpenID Discovery
|--------------------------------------------------------------------------
|
| Presents a basic json encoded response for OpenID Discovery.
| - issuer MUST be HTTPS and match
*/
if ($well_known == 'openid-configuration') {
if ( $well_known == 'openid-configuration' ) {
$openid_configuration = array(
'issuer' => site_url( null, 'https' ),
'authorization_endpoint' => site_url( '/oauth/authorize' ),
Expand Down Expand Up @@ -220,7 +218,7 @@

// Check the token provided
$response = new OAuth2\Response();
if ( !$server->verifyResourceRequest(OAuth2\Request::createFromGlobals())) {
if ( ! $server->verifyResourceRequest( OAuth2\Request::createFromGlobals() ) ) {
$response->setError(400, 'invalid_request', 'Missing or invalid parameter(s)');
$response->send();
exit;
Expand Down
50 changes: 25 additions & 25 deletions library/keys/private_key.pem
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEA0B0sd82KRixVjpmB6aM4skQxM6kfQs5zjMVUKaKf9Pol0dPO
CKjki9pV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oKuHJYt81MLhzGNaW+ZiGIlhsdoothruUqRCqS
j/xsPTT6jp/0+qsMKEellvx8PaSwYaKMbaAWbjQbim4/rTDdDGpM+8P6lf2pDRv3
VckQbwECgYEA75I8Z5Ndnb7lSUfAzV3fbllu5KEFMT7k8Stxrn/0QMKvgyAx9BTk
Fw011nihwW+qfSvDnpbl/pEVr0c+owZZozaF6F4Qyi4vyy71G+YuzZwQ1OMikjnp
9eTbirpnhTT7q10YMfiFHW6L8SsBxDRzXXQ3AcXG99t5UCLpzlT8iJsCgYEAyRky
tG+SY3N1/peRgJvgDoyTU3ll5y8YnmG9iF2qMR0QoqobDhSAkjO0+GY646DX/cYs
XUu+STh0YgZDHFF+mn5HVtCtaA75ckzDLJ/sXT0msxwI5ZBxD0e5Mh1BEHYO/fG0
+3UTAwSDxUWcfY+5enP7LFxOh00Qcc3ZAnghhB0CgYASKRu7HkiydI4dB/ttlfgh
/VWSr0IdgY8JWSm8+KYjYp67ae1fe1XvCWlTYMGiUDy0UGT72KSGr6jdKKFu6kRR
QwjTnI3ZRbcJx/18p+5UV8hO2wj73LgHk9mwooDGcEXDr8LtxtEQchjZp1Dy9qbo
Jq8ky0FR+KkxkfP3WCnskQKBgA3nOxU0fYd4rRi7++hLXpNC7tCfnQb9v5L7qPHr
n9+jZcoJPrObgUQaZRGjZ8DjFuvJrrmIihBf4dQBINStYbZmsqHy7Xo7Rs27Nuc3
60yK9Mj/UDIm6VooGEq5sQzlTKYL9vpHntffkQirhmU78ZPgvuXTP+6kylVD6RP9
oDuVAoGAKDpzU8qyJz4jOAAjbYH3ZwD26G6KDuAtIRm6xb0X/MtY7RdPjfsHtb9e
7PZ0Pve2nzZJL1htF2JiYnG1M9kEO2ZbxByvSKwhDgC+ipKdcAwDSgBT9rhBEJQU
J52hmmds02SMWr/awOrO7F4TWHVms0h4YrQrE5ga0331BLt3pnU=
-----END RSA PRIVATE KEY-----
14 changes: 7 additions & 7 deletions library/keys/public_key.pem
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0B0sd82KRixVjpmB6aM4
skQxM6kfQs5zjMVUKaKf9Pol0dPOCKjki9pVjU17yX4HenCdsl0W5msQM7X/15SO
uUBUzp1Afmcz/ehh0/+98qfh3vkK7NXSlriOGHkmNOmy31/qY1I5hNLvsVmtuQ3d
X2okirPrGRPkqpVyF8CYeoHEiIE+7dhKbyLgSoMo6D7nXdBS8vNlNVAlsxfQg9Ep
rmjwgnKUbTQj3VdHHy4NuOwCNlT7zcDuYRMrb1OfKrpCTTvrEnPCsAiC7DPqRKP0
pOZa/O8YSbH5EikRSOuOAsAC5HC9ITFm1qzWkrBq0GweOqJ85hLi47CMyvl0AEcE
AwIDAQAB
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvDFmKKPZ/0QmvgpYvuNj
lm5f0P7OM6d5/HxZQtRP2xQ1baZCf6ooHaoVUfjll94T4RrwgnRWBdg6tPvSpgU/
Zc62sN76MWQb0ZZEdGssMdbiuPFwJH6//yRyYrqYzsq3k6BnC3NPzuRSww/1utbz
mqM70RWUFmdx/bnloF7rTsrGGdVMZ05GKKLj9GTI0jkHI2eGYlCZe90euWo1fFBs
nsphso8Yb4f4CZYk9u+vDAJhcQCTK5P3ZWmkntHR+3Z/j+drXugm9syVLCNcsIxf
tYdOnyq4cILNKlLmJeXjEJntKdyiE7quGA7+eaia1uPqmdBO0Y5BhQV41aj+GwZl
jwIDAQAB
-----END PUBLIC KEY-----

0 comments on commit 3c791cc

Please sign in to comment.