Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bingo
Oauth2 Server
Commits
2e3ee60a
Commit
2e3ee60a
authored
7 years ago
by
Andrew Millington
Browse files
Options
Download
Email Patches
Plain Diff
Remove additional whitespace
parent
0242d0c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/Exception/OAuthServerException.php
src/Exception/OAuthServerException.php
+1
-1
No files found.
src/Exception/OAuthServerException.php
View file @
2e3ee60a
...
...
@@ -295,7 +295,7 @@ class OAuthServerException extends \Exception
// matching the authentication scheme used by the client.
// @codeCoverageIgnoreStart
if
(
$this
->
errorType
===
'invalid_client'
&&
array_key_exists
(
'HTTP_AUTHORIZATION'
,
$_SERVER
)
!==
false
)
{
$authScheme
=
strpos
(
$_SERVER
[
'HTTP_AUTHORIZATION'
],
'Bearer'
)
===
0
?
'Bearer'
:
'Basic'
;
$authScheme
=
strpos
(
$_SERVER
[
'HTTP_AUTHORIZATION'
],
'Bearer'
)
===
0
?
'Bearer'
:
'Basic'
;
$headers
[
'WWW-Authenticate'
]
=
$authScheme
.
' realm="OAuth"'
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment