Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mathieu
potage
Commits
dd33e978
Commit
dd33e978
authored
Aug 31, 2018
by
Mat
Browse files
Adapte la méthode pour passer le token dans l'URL
parent
debb3ab9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/PotageBundle/Security/TokenAuthenticator.php
View file @
dd33e978
...
...
@@ -25,7 +25,7 @@ class TokenAuthenticator extends AbstractGuardAuthenticator
*/
public
function
supports
(
Request
$request
)
{
return
$request
->
head
er
s
->
has
(
'
X-AUTH-TOKEN
'
);
return
$request
->
qu
er
y
->
has
(
'
token
'
);
}
/**
...
...
@@ -82,7 +82,7 @@ class TokenAuthenticator extends AbstractGuardAuthenticator
public
function
getCredentials
(
Request
$request
)
{
return
array
(
'token'
=>
$request
->
head
er
s
->
get
(
'
X-AUTH-TOKEN
'
),
'token'
=>
$request
->
qu
er
y
->
get
(
'
token
'
),
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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