Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
1a86c8ac
Commit
1a86c8ac
authored
Jan 01, 2017
by
Marcin Mongiało
Committed by
GitHub
Jan 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update guard_authentication.rst
isPasswordValid() needs hashed password, not plaintext.
parent
4ee0d672
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
doc/cookbook/guard_authentication.rst
doc/cookbook/guard_authentication.rst
+3
-2
No files found.
doc/cookbook/guard_authentication.rst
View file @
1a86c8ac
...
...
@@ -150,7 +150,8 @@ Finally, configure your `security.firewalls` key to use this authenticator:
// configure where your users come from. Hardcode them, or load them from somewhere
// http://silex.sensiolabs.org/doc/providers/security.html#defining-a-custom-user-provider
'users' => array(
'victoria' => array('ROLE_USER', 'randomsecret'),
//raw password = foo
'victoria' => array('ROLE_USER', '$2y$10$3i9/lVd8UOFIJ6PAMFt8gu3/r5g0qeCJvoSlLCsvMTythye19F77a'),
),
// 'anonymous' => true
),
...
...
@@ -175,7 +176,7 @@ under different conditions:
# {"message":"Username could not be found."}
# test with a working token
curl -H "X-AUTH-TOKEN: victoria:
randomsecret
" http://localhost:8000/
curl -H "X-AUTH-TOKEN: victoria:
foo
" http://localhost:8000/
# the homepage controller is executed: the page loads normally
For more details read the Symfony cookbook entry on
...
...
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