mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
f78dc2eca0 | ||
|
105b3116dc | ||
|
01677a564e | ||
|
4c4b0633b1 | ||
|
c4a75b2880 |
@@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 5.1.3 (released 2016-10-12)
|
||||||
|
|
||||||
|
* Fixed WWW-Authenticate header (Issue #669)
|
||||||
|
* Increase the recommended RSA key length from 1024 to 2048 bits (Issue #668)
|
||||||
|
|
||||||
## 5.1.2 (released 2016-09-19)
|
## 5.1.2 (released 2016-09-19)
|
||||||
|
|
||||||
* Fixed `finalizeScopes` call (Issue #650)
|
* Fixed `finalizeScopes` call (Issue #650)
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
0. Run `composer install` in this directory to install dependencies
|
0. Run `composer install` in this directory to install dependencies
|
||||||
0. Create a private key `openssl genrsa -out private.key 1024`
|
0. Create a private key `openssl genrsa -out private.key 2048`
|
||||||
0. Create a public key `openssl rsa -in private.key -pubout > public.key`
|
0. Create a public key `openssl rsa -in private.key -pubout > public.key`
|
||||||
0. `cd` into the public directory
|
0. `cd` into the public directory
|
||||||
0. Start a PHP server `php -S localhost:4444`
|
0. Start a PHP server `php -S localhost:4444`
|
||||||
|
@@ -267,7 +267,7 @@ class OAuthServerException extends \Exception
|
|||||||
) {
|
) {
|
||||||
$authScheme = 'Bearer';
|
$authScheme = 'Bearer';
|
||||||
}
|
}
|
||||||
$headers[] = 'WWW-Authenticate: ' . $authScheme . ' realm="OAuth"';
|
$headers['WWW-Authenticate'] = $authScheme . ' realm="OAuth"';
|
||||||
}
|
}
|
||||||
// @codeCoverageIgnoreEnd
|
// @codeCoverageIgnoreEnd
|
||||||
return $headers;
|
return $headers;
|
||||||
|
Reference in New Issue
Block a user