-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Add comment on http_digest auth. #2170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4c48a42
b784172
95bf4da
96466b9
75a4f61
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -284,3 +284,43 @@ A good configuration lies around at least 1000 iterations and sha512 | |
for the hash algorithm. | ||
|
||
.. _`PBKDF2`: http://en.wikipedia.org/wiki/PBKDF2 | ||
|
||
HTTP-Digest Authentication | ||
-------------------------- | ||
|
||
To use HTTP-Digest authentication you need to provide a realm and a key: | ||
|
||
.. configuration-block:: | ||
|
||
.. code-block:: yaml | ||
|
||
# app/config/security.yml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Put an empty line after |
||
security: | ||
firewalls: | ||
somename: | ||
http_digest: | ||
key: "a_random_string" | ||
realm: "secure-api" | ||
|
||
.. code-block:: xml | ||
|
||
<!-- app/config/security.xml --> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You forgot a new line here 👊 ;) |
||
<security:config> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should add a file comment: |
||
<firewall name="somename"> | ||
<http-digest key="a_random_string" realm="secure-api" /> | ||
</firewall> | ||
</security:config> | ||
|
||
.. code-block:: php | ||
|
||
// app/config/security.php | ||
$container->loadFromExtension('security', array( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here |
||
'firewalls' => array( | ||
'somename' => array( | ||
'http_digest' => array( | ||
'key' => 'a_random_string', | ||
'realm' => 'secure-api', | ||
), | ||
), | ||
), | ||
)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you include a
xml
andphp
example here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer not to. Mainly bc then I'll spend 20 - 30 minutes finding a config example to cut and paste.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it is something we want in the documentation (more information in #2042). It is easier to do it now than doing it later, what will cost us a lot of time we should put into documentation new features.
Xml
Php