Skip to content

Documented simulating an authentication by manual token creation. #2468

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

Merged
merged 1 commit into from
Apr 17, 2013
Merged

Documented simulating an authentication by manual token creation. #2468

merged 1 commit into from
Apr 17, 2013

Conversation

jakzal
Copy link
Contributor

@jakzal jakzal commented Apr 5, 2013

Even though there are better ways of doing the same thing (like alternative authentication strategy for test environment), we're getting lots of questions on how to properly authenticate a user in a functional test by creating a token manually (see symfony/symfony#5161).

Q A
Doc fix? no
New docs? yes
Applies to >=2.0
Fixed tickets -

@wouterj
Copy link
Member

wouterj commented Apr 5, 2013

Could you please at the pull request format to your PR message?


One of the solutions is to configure your firewall to use ``http_basic`` in
the test environment as explained in
:doc:`How to simulate HTTP Authentication in a Functional Test</cookbook/testing/http_authentication>`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just use:

:doc:`/cookbook/testing/http_authentication`

It will default to the heading of the document.

@jakzal
Copy link
Contributor Author

jakzal commented Apr 6, 2013

@wouterj done. Thanks!

weaverryan added a commit that referenced this pull request Apr 17, 2013
Documented simulating an authentication by manual token creation.
@weaverryan weaverryan merged commit 7384903 into symfony:2.0 Apr 17, 2013
@weaverryan
Copy link
Member

Hi Jakub!

Great entry! I've merged in with only very minor tweaks.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants